POV-Ray : Newsgroups : povray.general : What time is it? : Re: What time is it? Server Time
11 Aug 2024 07:17:21 EDT (-0400)
  Re: What time is it?  
From: PoD
Date: 28 Aug 1999 13:07:35
Message: <37C817F4.170DF61C@merlin.net.au>
Fabien Mosen wrote:
> 
> Bill DeWitt wrote:
> >
> > Is there a way to call the present system time into a pov file? So that I
> > can use it to show the correct angles of the sun and moon? I think I can do
> > it using a text program which has a time stamp, but I wonder if POV does
> > it...
> >
> > I don't find a reference to it in the help file, and none of the options in
> > the editor look like it.
> 
> If you, or someone else, can do some C (or whatever) programming, you
> could
> use the "Shell-out to Operating System" command in the .ini file, to
> call
> a program that will write the time info into a file that you will #read
> inside
> povray script.
> 
> Fabien.

Er. how about something like 'time > time.txt' in DOS/Windoze or 'date >
time.txt' in *n*x.
It won't be very portable though.

Cheers, PoD.


Post a reply to this message

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