POV-Ray : Newsgroups : povray.general : Anyone use datetime? : Re: Anyone use datetime? Server Time
29 Apr 2024 14:06:11 EDT (-0400)
  Re: Anyone use datetime?  
From: Leroy
Date: 20 Nov 2014 17:50:02
Message: <546e701a@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.