View Full Version : Time Converter
01-19-2004, 07:20 PM
Is there an easy way to convert the value gotten by using "timestamp()" into something easier to understand like "01:12:23 pm"?
01-19-2004, 07:56 PM
Since timeStamp() returns milliseconds, you just have to go through the paces of extracting the seconds, minutes, and hours, then devising a way to "pretty-print" the results. Here's a function that does the trick for the specific format you wanted (see attached).
01-19-2004, 08:14 PM
That's exactly what I was looking for. Thanks! :applause:
I'll have to disect it, I'm still pretty new to MaxScript and haven't messed with creating my own functions yet.
BTW, you're CleanCut script is great, I use it alot.
01-17-2006, 06:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2015, Jelsoft Enterprises Ltd.