Notifications
Clear all
[Closed] Time Converter
Jan 19, 2004 7: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”?
2 Replies
Jan 19, 2004 7:20 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).
RH
Jan 19, 2004 7:20 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.