optixlab / keepnote

Automatically exported from code.google.com/p/keepnote
0 stars 0 forks source link

Enhancement - Add support for ISO 8601 date & time formats #600

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I would suggest two small enhancements regarding the time and date 
representation that will be appreciated by users outside north america who are 
more used to the conventions defined in the international standard ISO 8601:

1) On the date & time preferences, the week-day key (%w) uses numbeers 0..6 
starting from Sunday. On the other hand, ISO 8601 uses numbers 1..7 beginning 
with monday and ending with Sunday.

2) Also on date & time preferences, the week number key (%W) representation 
uses numbers 00..53 with all days in a new year preceding the first monday to 
be in week 0.
Under ISO 8601, week numbering starts with number 01, corresponding to the week 
with the year's first Thursday in it.

I think the implementation of two extra formating keys for these variants 
should be straighforward and very convenient for international users.

For more information see: http://en.wikipedia.org/wiki/ISO_8601

Thanks and keep up the good work!

Original issue reported on code.google.com by g.birram...@gmail.com on 30 Mar 2012 at 2:07

GoogleCodeExporter commented 9 years ago
Thanks for this very informative feedback.  FYI, My date format keys come 
straight from python's definitions:

time.strftime
http://docs.python.org/library/time.html

Original comment by matt.rasmus@gmail.com on 11 Apr 2012 at 2:23

GoogleCodeExporter commented 9 years ago
The format for the insert date function can be changed by editing the file: 

$HOME/.config/keepnote/extensions_data/editor_insert_date/config

For Linux obviously, I have no idea where this would be found in windows.

Original comment by mikee....@googlemail.com on 30 Jul 2012 at 9:29