http://man7.org/linux/man-pages/man3/strftime.3.html
"ISO 8601 week dates
%G, %g, and %V yield values calculated from the week-based year
defined by the ISO 8601 standard. In this system, weeks start on a
Monday, and are numbered from 01, for the first week, up to 52 or 53,
for the last week. Week 1 is the first week where four or more days
fall within the new year (or, synonymously, week 01 is: the first
week of the year that contains a Thursday; or, the week that has 4
January in it). When three of fewer days of the first calendar week
of the new year fall within that year, then the ISO 8601 week-based
system counts those days as part of week 53 of the preceding year.
For example, 1 January 2010 is a Friday, meaning that just three days
of that calendar week fall in 2010. Thus, the ISO 8601 week-based
system considers these days to be part of week 53 (%V) of the year
2009 (%G); week 01 of ISO 8601 year 2010 starts on Monday, 4 January
2010."
%g as "shortest representation of a float" is from (s)printf format specifiers.
-----Ursprüngliche Nachricht-----
Von: sqlite-users [mailto:[email protected]] Im
Auftrag von Simon Slavin
Gesendet: Montag, 16. Jänner 2017 13:30
An: SQLite mailing list <[email protected]>
Betreff: Re: [sqlite] Feature request
On 16 Jan 2017, at 12:17pm, Hick Gunter <[email protected]> wrote:
> Please be aware that %V implies %G/%g (four and two digit ISO Year number),
> which differs from %Y/%y on the "spillover days" that belong to the
> first/last week of the "other" year.
Can you tell me where your %G and %g definitions are coming from ? I thought
%g was for printing the shortest representation of a number.
Simon.
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users
___________________________________________
Gunter Hick
Software Engineer
Scientific Games International GmbH
FN 157284 a, HG Wien
Klitschgasse 2-4, A-1130 Vienna, Austria
Tel: +43 1 80100 0
E-Mail: [email protected]
This communication (including any attachments) is intended for the use of the
intended recipient(s) only and may contain information that is confidential,
privileged or legally protected. Any unauthorized use or dissemination of this
communication is strictly prohibited. If you have received this communication
in error, please immediately notify the sender by return e-mail message and
delete all copies of the original communication. Thank you for your cooperation.
_______________________________________________
sqlite-users mailing list
[email protected]
http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users