On Sat, Feb 28, 2009 at 12:28:33PM -0800, jonwood scratched on the wall:
> 
> 
> Derrell Lipman wrote:
> > 
> > http://sqlite.org/lang_datefunc.html
> > 
> 
> Exactly. No 2-digit year format, no AM/PM format, and no way to eliminate
> leading zeros, etc. Just as I pointed out in my original post.

  It should be pretty trivial to add those, however.  The strftime()
  function is right there in the code.  You could add a 'y' for
  two-digit years with about six lines of code.  Similar for 'h' - 12
  hour value, or 'A' - AM/PM indicator, or whatever.

  If you're not comfortable modifying the SQLite source for
  distribution reasons, or something like that, just bulk copy
  the strftime() function to your own external module or something and
  add/rewrite the bits you want.  Then you can link it in to any
  instance of SQLite you want.

   -j

-- 
Jay A. Kreibich < J A Y  @  K R E I B I.C H >

"Our opponent is an alien starship packed with atomic bombs.  We have
 a protractor."   "I'll go home and see if I can scrounge up a ruler
 and a piece of string."  --from Anathem by Neal Stephenson
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to