View Full Version : hour and day
Sunstrider
12-18-2007, 07:52 PM
How do you get the current hour and day in ut3?
In ut2004 it was Level.Hour and Level.Day, yes, I'm still digging in the code, I need to know the current hour and day for my code and not found it yet.
Thanks for any help and time that may be put into an answer to this question.
Shambler
12-19-2007, 06:08 PM
You can't as far as I know.
There is only one considerably hacky way of doing it; use a FileWriter object to create a logfile with a timestamp, and read that from the filename (I'm not sure if that includes the hour though).
That's not much use though, as you would end up spamming the log folder :)
Sunstrider
12-19-2007, 07:24 PM
You can't as far as I know.
There is only one considerably hacky way of doing it; use a FileWriter object to create a logfile with a timestamp, and read that from the filename (I'm not sure if that includes the hour though).
That's not much use though, as you would end up spamming the log folder :)
That's sad, I can't believe that was left out. Oh well. That's one mutator I won't be converting over to ut3.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.