Hi *,
some month ago I wrote question about possibility to add support of %y
(2 digit year) to strftime() function.
Patch is very simple (only few lines of code) and I hope, that will be
useful for many users.
Patch by Alexey is here:
http://sqlite.mobigroup.ru/wiki?name=2-digit+year+patch
(although I think, that it can be done in a simpler way ... see my
comment later)
Can you consider please adding such support ? Is this proper place for
post such requests ? Can I do something more to add such support ?
TIA
-Laco.
Looking at patch I do not understand, why we add
n += 4;
in case of 'y' ?
I would do:
case 'W':
+ case 'y':
n++;
...
+ case 'y': {
+ sqlite3_snprintf(3,&z[j],"%02d",x.Y % 100); j+=2;
+ break;
+ }
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users