Announcement

Collapse
No announcement yet.

Formatting the date in Kate's print header

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Formatting the date in Kate's print header

    In How to alter date format in page header in Kate (kde text editor) a user of Kate wants to have a specific format, YYYY-MM-DD HH:mm, apparently without success.

    This is what the user tried:
    Code:
    %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
    Kubuntu 20.04

    #2
    Kate is using the System Settings, Regional Settings, Formats. I have "Detailed settings" checked, and "Time" set to "United Kingdom - British English (en_GB)", and kate just printed "22/03/2019 10:26" for %d.
    Regards, John Little

    Comment


      #3
      Thanks! Will you post an answer there?
      Kubuntu 20.04

      Comment


        #4
        Originally posted by chimak111 View Post
        Thanks! Will you post an answer there?
        (Been away.) Someone else has commented there suggesting the Swedish settings. The questioner's requirement is for an ISO format date, not the dd/mm/yyyy I suggested.
        Regards, John Little

        Comment


          #5
          In a later comment to the question, there's a link to an image of Geany's header the way OP wants:

          https://i.stack.imgur.com/mgZOc.png

          But unlike Kate's header, the Geany header takes up two lines and the order in the Geany header seems fixed. Win some, lose some!
          Kubuntu 20.04

          Comment

          Working...
          X