Linux Calendar: verschil tussen versies

Uit De Vliegende Brigade
Naar navigatie springen Naar zoeken springen
Regel 66: Regel 66:
  
 
* https://www.foragoodstrftime.com/
 
* https://www.foragoodstrftime.com/
* http://strftime.org/
+
* http://strftime.org/ - Sommige dingen werken niet, waaronder %W
 
* https://stackoverflow.com/questions/33039960/strftime-with-week-number-format-yyyywww-gives-wrong-week
 
* https://stackoverflow.com/questions/33039960/strftime-with-week-number-format-yyyywww-gives-wrong-week
 +
* http://php.net/manual/en/function.strftime.php

Versie van 12 mei 2018 16:31

Rechtsonder in de system tray (toch?) heb je meestal datum + tijd. Dat kun je aanpassen. Ik wil graag weeknumers en secondes toevoegen.

Codes

Voor een completere lijst, zie [1]

%a - The abbreviated weekday name (Sun)
%A - The full weekday name (Sunday)
%b - The abbreviated month name (Jan)
%B - The full month name (January)
%d - Day of the month (01..31)
%e - Day of the month (1..31)
%H - Hour of the day, 24-hour clock (00..23)
%I - Hour of the day, 12-hour clock (01..12)
%l - Hour of the day ()
%j - Day of the year (001..366)
%m - Month of the year (01..12)
%M - Minute of the hour (00..59)
%p - Meridian indicator (AM or PM)
%S - Second of the minute (00..60)

%u - Dit lijkt het dag-van-de-weeknummer te geven zonder voorloop-    6
     nul (mei 2018, Linux Mint). Onduidelijk of telling bij maan-
     dag of zondag begint, en of het begint bij 0 of bij 1

%U - Week number of the year (Sunday as the first day of the week)   39 
     as a zero padded decimal number. All days in a new year pre-
     ceding the first Sunday are considered to be in week 0 - 
     In mei 2018 op Linux Mint, gaf dit een foutmelding

%V   ISO-8601:1988 week number of the given year, starting with the  19
     first week of the year with at least 4 weekdays, with Monday 
     being the start of the week 01 through 53 (where 53 accounts 
     for an overlapping week)

%w   Dag-van-de-weeknummer zonder voorloop-nul (Linux Mint, mei       6
     2018). Onduidelijk of telling bij maandag of zondag begint, 
     en of het begint bij 0 of bij 1

%W - Week number of the year (Monday as the first day of the week)   39
     as a decimal number. All days in a new year preceding the 
     first Monday are considered to be in week 0.
     -- Ik krijg een foutmelding (Linux Mint, mei 2018)

%y - Year without a century                                          00-99
%Y - Year with century
%Z - Time zone name
%% - Literal % character

Voorbeelden

Standaard:

%A %B %e, %H:%M

Bv. Saturday May 12, 16:18

Mijn standaard:

Wk %W - %a %d %m %y%A %B %e, %H:%M


Bronnen