POV-Ray : Newsgroups : povray.beta-test : POV-Ray v3.8.0-beta 1 - Parse error using "%s" in Win10 : Re: POV-Ray v3.8.0-beta 1 - Parse error using "%s" in Win10 Server Time
23 Oct 2021 23:18:22 EDT (-0400)
  Re: POV-Ray v3.8.0-beta 1 - Parse error using "%s" in Win10  
From: kurtz le pirate
Date: 25 Jul 2021 06:18:07
Message: <60fd3a5f$1@news.povray.org>
On 25/07/2021 10:33, jr wrote:

> just to confirm, this works on all Linux systems I have access to, incl a Debian
> VM with (oldest) POV-Ray-3.7.0.8.

Ok on Mac.


#declare DateString = datetime(now,"%s");
#debug concat("DateString     = ",DateString,"\n")

#declare DateNum = val(datetime(now,"%s"));
#debug concat("DateNum        = ",str(DateNum,0,0),"\n")

#declare LongDateString = datetime(now,"%A %e %B %Y %H:%M:%S");
#debug concat("LongDateString = ", LongDateString,"\n")


Result :

DateString     = 1627201022
DateNum        = 1627201022
LongDateString = Sunday 25 July 2021 10:17:02



-- 
Kurtz le pirate
Compagnie de la Banquise


Post a reply to this message

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