My Programming skills were getting rusty, so I spent the last 30 minut ...

in DBuzz3 years ago

My Programming skills were getting rusty, so I spent the last 30 minutes trying to convert the UnixTimeStamp into an actual readable time... Why? 'cause I didn't do that before & it's simple enough to learn quickly.




Posted via D.Buzz

Sort:  

It's:

tstamp()/3600%24 -> for hours
tstamp()/60%60 -> for minutes
tstamp()%60 -> for seconds

I mistakenly divided on 86400 (which can be used for determining the days in a year) in the image above. It doesn't affect the code...

Posted via D.Buzz