How to alter date format in page header in Kate (kde text editor)How do I make kate the default text editor...

How can Trident be so inexpensive? Will it orbit Triton or just do a (slow) flyby?

What major Native American tribes were around Santa Fe during the late 1850s?

Will adding a BY-SA image to a blog post make the entire post BY-SA?

Open a doc from terminal, but not by its name

Why did the EU agree to delay the Brexit deadline?

Flux received by a negative charge

On a tidally locked planet, would time be quantized?

Why do IPv6 unique local addresses have to have a /48 prefix?

Folder comparison

Reply 'no position' while the job posting is still there

Can somebody explain Brexit in a few child-proof sentences?

Is there a conventional notation or name for the slip angle?

Are lightweight LN wallets vulnerable to transaction withholding?

Why does Async/Await work properly when the loop is inside the async function and not the other way around?

Did arcade monitors have same pixel aspect ratio as TV sets?

How much character growth crosses the line into breaking the character

Can a significant change in incentives void an employment contract?

Varistor? Purpose and principle

Could the E-bike drivetrain wear down till needing replacement after 400 km?

Bob has never been a M before

Should I install hardwood flooring or cabinets first?

Can I use my Chinese passport to enter China after I acquired another citizenship?

Query about absorption line spectra

Should I stop contributing to retirement accounts?



How to alter date format in page header in Kate (kde text editor)


How do I make kate the default text editor in gnome?Automatically saving files on edit with kate or any text editorHow to keep Ubuntu 11.10 and Kate editor w/terminal from changing command line when changing tabs?How to unmangle PDF format into a usable text or spreadsheet document?Don't break header/footer when making page landscape formatHow to change date format in multiple text files in powershell?How do I cut a line in KDE Kate?Visual Basic highlighting for Kate text editorHow to change the colour of KATE text editor's UIHow can I get the date in a locale independent format in a batch file?













1















In Kate, I can specify the headers to appear on each printed page:



File > Print... > Options > Header & Footer



In the Header Properties, I found the Format code %y in the left field. This yields the date in the header in the format 1/19/19. I'd like to use a different format.



After some trial and error, I found some date/time related formats:



%y => 1/19/19
%Y => Saturday, January 19, 2019
%t => %t
%T => %T
%i => %i
%I => %I
%d => 1/19/19 4:59 PM
%D => Saturday, January 19, 2019 4:49:58 PM CET


(I tried t for time, i for ISO, d for day)



I would like to use the ISO-format, preferably with the time: YYYY-MM-DD HH:mm.



Unfortunately, there is no "help" button listing the formats and the Kate manual is silent on this subject. I tried to look this up on the internet, but no success there so far...



I am on Ubuntu Xenial (16.04.5 LTS) with LXDE.










share|improve this question























  • By the way, are you still using the OS mentioned here or have you moved to Kubuntu? Even on Kubuntu 18.04, there's not much you can do re. changing the header format. Apparently, Kate uses the locale settings: kubuntuforums.net/showthread.php/…

    – DK Bose
    21 hours ago











  • Yes, I am currently on Kubuntu 18.04.2. Kate using the locale settings is not bad per se, if I could set those properly. I have now set the Time format to Sweden (en_SE). I consider this a non-solution or workaround as I am not in Sweden. I also found the setting Default (C), which might suggest that I could install some locale based on ISO standards?

    – Marten Koetsier
    14 hours ago











  • It maybe possible to run kate with a locale different than your default locale. Does LANG=en_SE kate help? If it does, you can create a shortcut/desktop file to always start kate that way.

    – DK Bose
    14 hours ago











  • Nice suggestion, but didn't work. Perhaps because I do not have that locale installed. Also, it is not installable: $ sudo locale-gen en_SE returns Error: 'en_SE' is not a supported language or locale. Do you know of a specific ISO-locale (not tied to any country / language) that I might install? NB: I never want to use 24-03-19, 19/03/24, 3/24/19 and the like on my system: ALWAYS 2019-03-24 (ISO) is what I want.

    – Marten Koetsier
    14 hours ago











  • Oh! I thought you had it installed. By the way, Geany allows you better customization and obeys the formats described in man date. So, %F %H:%M would give you what you want.

    – DK Bose
    14 hours ago
















1















In Kate, I can specify the headers to appear on each printed page:



File > Print... > Options > Header & Footer



In the Header Properties, I found the Format code %y in the left field. This yields the date in the header in the format 1/19/19. I'd like to use a different format.



After some trial and error, I found some date/time related formats:



%y => 1/19/19
%Y => Saturday, January 19, 2019
%t => %t
%T => %T
%i => %i
%I => %I
%d => 1/19/19 4:59 PM
%D => Saturday, January 19, 2019 4:49:58 PM CET


(I tried t for time, i for ISO, d for day)



I would like to use the ISO-format, preferably with the time: YYYY-MM-DD HH:mm.



Unfortunately, there is no "help" button listing the formats and the Kate manual is silent on this subject. I tried to look this up on the internet, but no success there so far...



I am on Ubuntu Xenial (16.04.5 LTS) with LXDE.










share|improve this question























  • By the way, are you still using the OS mentioned here or have you moved to Kubuntu? Even on Kubuntu 18.04, there's not much you can do re. changing the header format. Apparently, Kate uses the locale settings: kubuntuforums.net/showthread.php/…

    – DK Bose
    21 hours ago











  • Yes, I am currently on Kubuntu 18.04.2. Kate using the locale settings is not bad per se, if I could set those properly. I have now set the Time format to Sweden (en_SE). I consider this a non-solution or workaround as I am not in Sweden. I also found the setting Default (C), which might suggest that I could install some locale based on ISO standards?

    – Marten Koetsier
    14 hours ago











  • It maybe possible to run kate with a locale different than your default locale. Does LANG=en_SE kate help? If it does, you can create a shortcut/desktop file to always start kate that way.

    – DK Bose
    14 hours ago











  • Nice suggestion, but didn't work. Perhaps because I do not have that locale installed. Also, it is not installable: $ sudo locale-gen en_SE returns Error: 'en_SE' is not a supported language or locale. Do you know of a specific ISO-locale (not tied to any country / language) that I might install? NB: I never want to use 24-03-19, 19/03/24, 3/24/19 and the like on my system: ALWAYS 2019-03-24 (ISO) is what I want.

    – Marten Koetsier
    14 hours ago











  • Oh! I thought you had it installed. By the way, Geany allows you better customization and obeys the formats described in man date. So, %F %H:%M would give you what you want.

    – DK Bose
    14 hours ago














1












1








1


1






In Kate, I can specify the headers to appear on each printed page:



File > Print... > Options > Header & Footer



In the Header Properties, I found the Format code %y in the left field. This yields the date in the header in the format 1/19/19. I'd like to use a different format.



After some trial and error, I found some date/time related formats:



%y => 1/19/19
%Y => Saturday, January 19, 2019
%t => %t
%T => %T
%i => %i
%I => %I
%d => 1/19/19 4:59 PM
%D => Saturday, January 19, 2019 4:49:58 PM CET


(I tried t for time, i for ISO, d for day)



I would like to use the ISO-format, preferably with the time: YYYY-MM-DD HH:mm.



Unfortunately, there is no "help" button listing the formats and the Kate manual is silent on this subject. I tried to look this up on the internet, but no success there so far...



I am on Ubuntu Xenial (16.04.5 LTS) with LXDE.










share|improve this question














In Kate, I can specify the headers to appear on each printed page:



File > Print... > Options > Header & Footer



In the Header Properties, I found the Format code %y in the left field. This yields the date in the header in the format 1/19/19. I'd like to use a different format.



After some trial and error, I found some date/time related formats:



%y => 1/19/19
%Y => Saturday, January 19, 2019
%t => %t
%T => %T
%i => %i
%I => %I
%d => 1/19/19 4:59 PM
%D => Saturday, January 19, 2019 4:49:58 PM CET


(I tried t for time, i for ISO, d for day)



I would like to use the ISO-format, preferably with the time: YYYY-MM-DD HH:mm.



Unfortunately, there is no "help" button listing the formats and the Kate manual is silent on this subject. I tried to look this up on the internet, but no success there so far...



I am on Ubuntu Xenial (16.04.5 LTS) with LXDE.







format kate






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 19 at 16:10









Marten KoetsierMarten Koetsier

1136




1136













  • By the way, are you still using the OS mentioned here or have you moved to Kubuntu? Even on Kubuntu 18.04, there's not much you can do re. changing the header format. Apparently, Kate uses the locale settings: kubuntuforums.net/showthread.php/…

    – DK Bose
    21 hours ago











  • Yes, I am currently on Kubuntu 18.04.2. Kate using the locale settings is not bad per se, if I could set those properly. I have now set the Time format to Sweden (en_SE). I consider this a non-solution or workaround as I am not in Sweden. I also found the setting Default (C), which might suggest that I could install some locale based on ISO standards?

    – Marten Koetsier
    14 hours ago











  • It maybe possible to run kate with a locale different than your default locale. Does LANG=en_SE kate help? If it does, you can create a shortcut/desktop file to always start kate that way.

    – DK Bose
    14 hours ago











  • Nice suggestion, but didn't work. Perhaps because I do not have that locale installed. Also, it is not installable: $ sudo locale-gen en_SE returns Error: 'en_SE' is not a supported language or locale. Do you know of a specific ISO-locale (not tied to any country / language) that I might install? NB: I never want to use 24-03-19, 19/03/24, 3/24/19 and the like on my system: ALWAYS 2019-03-24 (ISO) is what I want.

    – Marten Koetsier
    14 hours ago











  • Oh! I thought you had it installed. By the way, Geany allows you better customization and obeys the formats described in man date. So, %F %H:%M would give you what you want.

    – DK Bose
    14 hours ago



















  • By the way, are you still using the OS mentioned here or have you moved to Kubuntu? Even on Kubuntu 18.04, there's not much you can do re. changing the header format. Apparently, Kate uses the locale settings: kubuntuforums.net/showthread.php/…

    – DK Bose
    21 hours ago











  • Yes, I am currently on Kubuntu 18.04.2. Kate using the locale settings is not bad per se, if I could set those properly. I have now set the Time format to Sweden (en_SE). I consider this a non-solution or workaround as I am not in Sweden. I also found the setting Default (C), which might suggest that I could install some locale based on ISO standards?

    – Marten Koetsier
    14 hours ago











  • It maybe possible to run kate with a locale different than your default locale. Does LANG=en_SE kate help? If it does, you can create a shortcut/desktop file to always start kate that way.

    – DK Bose
    14 hours ago











  • Nice suggestion, but didn't work. Perhaps because I do not have that locale installed. Also, it is not installable: $ sudo locale-gen en_SE returns Error: 'en_SE' is not a supported language or locale. Do you know of a specific ISO-locale (not tied to any country / language) that I might install? NB: I never want to use 24-03-19, 19/03/24, 3/24/19 and the like on my system: ALWAYS 2019-03-24 (ISO) is what I want.

    – Marten Koetsier
    14 hours ago











  • Oh! I thought you had it installed. By the way, Geany allows you better customization and obeys the formats described in man date. So, %F %H:%M would give you what you want.

    – DK Bose
    14 hours ago

















By the way, are you still using the OS mentioned here or have you moved to Kubuntu? Even on Kubuntu 18.04, there's not much you can do re. changing the header format. Apparently, Kate uses the locale settings: kubuntuforums.net/showthread.php/…

– DK Bose
21 hours ago





By the way, are you still using the OS mentioned here or have you moved to Kubuntu? Even on Kubuntu 18.04, there's not much you can do re. changing the header format. Apparently, Kate uses the locale settings: kubuntuforums.net/showthread.php/…

– DK Bose
21 hours ago













Yes, I am currently on Kubuntu 18.04.2. Kate using the locale settings is not bad per se, if I could set those properly. I have now set the Time format to Sweden (en_SE). I consider this a non-solution or workaround as I am not in Sweden. I also found the setting Default (C), which might suggest that I could install some locale based on ISO standards?

– Marten Koetsier
14 hours ago





Yes, I am currently on Kubuntu 18.04.2. Kate using the locale settings is not bad per se, if I could set those properly. I have now set the Time format to Sweden (en_SE). I consider this a non-solution or workaround as I am not in Sweden. I also found the setting Default (C), which might suggest that I could install some locale based on ISO standards?

– Marten Koetsier
14 hours ago













It maybe possible to run kate with a locale different than your default locale. Does LANG=en_SE kate help? If it does, you can create a shortcut/desktop file to always start kate that way.

– DK Bose
14 hours ago





It maybe possible to run kate with a locale different than your default locale. Does LANG=en_SE kate help? If it does, you can create a shortcut/desktop file to always start kate that way.

– DK Bose
14 hours ago













Nice suggestion, but didn't work. Perhaps because I do not have that locale installed. Also, it is not installable: $ sudo locale-gen en_SE returns Error: 'en_SE' is not a supported language or locale. Do you know of a specific ISO-locale (not tied to any country / language) that I might install? NB: I never want to use 24-03-19, 19/03/24, 3/24/19 and the like on my system: ALWAYS 2019-03-24 (ISO) is what I want.

– Marten Koetsier
14 hours ago





Nice suggestion, but didn't work. Perhaps because I do not have that locale installed. Also, it is not installable: $ sudo locale-gen en_SE returns Error: 'en_SE' is not a supported language or locale. Do you know of a specific ISO-locale (not tied to any country / language) that I might install? NB: I never want to use 24-03-19, 19/03/24, 3/24/19 and the like on my system: ALWAYS 2019-03-24 (ISO) is what I want.

– Marten Koetsier
14 hours ago













Oh! I thought you had it installed. By the way, Geany allows you better customization and obeys the formats described in man date. So, %F %H:%M would give you what you want.

– DK Bose
14 hours ago





Oh! I thought you had it installed. By the way, Geany allows you better customization and obeys the formats described in man date. So, %F %H:%M would give you what you want.

– DK Bose
14 hours ago










1 Answer
1






active

oldest

votes


















0














(I can't comment, so I'll add an answer instead.)
Kate is a KDE programme and depends on Qt. Somebody in Qt decided everyone in locale must use the formats for that locale. You must use the settings for your locale, and also, they compile in the settings for each locale, so you can't modify the file in /usr/share/i18n/locales to fix things, nor add a new locale.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1396112%2fhow-to-alter-date-format-in-page-header-in-kate-kde-text-editor%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    (I can't comment, so I'll add an answer instead.)
    Kate is a KDE programme and depends on Qt. Somebody in Qt decided everyone in locale must use the formats for that locale. You must use the settings for your locale, and also, they compile in the settings for each locale, so you can't modify the file in /usr/share/i18n/locales to fix things, nor add a new locale.






    share|improve this answer




























      0














      (I can't comment, so I'll add an answer instead.)
      Kate is a KDE programme and depends on Qt. Somebody in Qt decided everyone in locale must use the formats for that locale. You must use the settings for your locale, and also, they compile in the settings for each locale, so you can't modify the file in /usr/share/i18n/locales to fix things, nor add a new locale.






      share|improve this answer


























        0












        0








        0







        (I can't comment, so I'll add an answer instead.)
        Kate is a KDE programme and depends on Qt. Somebody in Qt decided everyone in locale must use the formats for that locale. You must use the settings for your locale, and also, they compile in the settings for each locale, so you can't modify the file in /usr/share/i18n/locales to fix things, nor add a new locale.






        share|improve this answer













        (I can't comment, so I'll add an answer instead.)
        Kate is a KDE programme and depends on Qt. Somebody in Qt decided everyone in locale must use the formats for that locale. You must use the settings for your locale, and also, they compile in the settings for each locale, so you can't modify the file in /usr/share/i18n/locales to fix things, nor add a new locale.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 15 mins ago









        JohnLittleJohnLittle

        112




        112






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1396112%2fhow-to-alter-date-format-in-page-header-in-kate-kde-text-editor%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Couldn't open a raw socket. Error: Permission denied (13) (nmap)Is it possible to run networking commands...

            VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

            Why not use the yoke to control yaw, as well as pitch and roll? Announcing the arrival of...