|
|
Thanks for the quick reply!
I have Windows XP.
While I was waiting I played with the 'now' in datetime() and figured my
NOW is .25 to big so I subtracted it and works find :)
datetime(now-.25,String format)
While playing I found that all the format options in C++ work as
expected, except %I and %H.(both hour formats where 6 hour off)
You said that datetime uses strftime(), after getting the LC_TIME
environment variable from my environment. Perhaps that is what's off or
the bios. Looks like I need to play some more.
I've used strftime() before to write a time stamp program to place the
time/date in a POV file and to write a calender program.
Before I go I have to tell ya about my fun with 'now'.
I put zero in just to what would happen. I got the same date and time as
POV docs. Then for fun I through in bigger numbers, I don't remember all
the different numbers I use but I did get Wednesday 6/22/1926 out of
one. I have to check it out on my calender. It was right!
Thanks for the help, looks like I have some work to do!
Post a reply to this message
|
|