POV-Ray : Newsgroups : povray.binaries.images : Ping Pong : Re: Ping Pong Server Time
2 Aug 2024 02:28:15 EDT (-0400)
  Re: Ping Pong  
From: alphaQuad
Date: 28 Mar 2008 10:55:01
Message: <web.47ed141e41aa233dd4dbf2450@news.povray.org>
j2ctime() was just plain wrong. It wasnt easy with DST messed up.

I have run it and then alt-tab'ed to trusted ctime - perfect.
Had to adjust for messed-up DST before the result could be checked.


#macro j2ctime(j)
  #local s = j - 2440587.5;
  #local d = s * 86400;
  round(d,0)
#end

Straight up easy.

Having been tortured doesnt makes this any easier. You may have noticed
something. Now you know.


Post a reply to this message

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