[Closed] How to get local / global time consistently
Hi guys, I’m trying to retrieve local and global time but by reading this thread I discovered that the maxscript function “localTime” is region dependent, so absolutely unreliable. The workaround seems to be to use “getFileCreateDate” on a dummy file created on purpose every time, but I’m not sure it could vary with different windows versions and date displaying settings.
Coming to the question, is there a way to get local and global time reliably and consistently? Maybe through dotNet?
Thank you.
- Enrico
use the getUniversalTime() function. found in the reference by typing “Local and Universal Time”
from the reference:
That’s a bit embarrassing, I’m used to search in the reference, even the most hidden bit of information, but this one slipped so badly. Thank you very much!
- Enrico