- Home /
Accesing Realtime on Mobile Devices.
Hey There,
So basically I'm just experimenting on changing/adding an image/object at certain intervals using real time form a mobile devices.
So how would I go about getting the real time of a mobile device then having at certain fixed intervals say over the course of a full day/night (24 hours) change a object or add onto said object?
Any help I would be very appreciative of.
Regards,
Trent
Answer by whydoidoit · Dec 02, 2012 at 11:47 AM
You can get the real time in local time using:
var currentTime = System.DateTime.Now;
Or if you need time coordinated you can use zulu time with:
var currentZuluTime = System.DateTime.UtcNow;
Your answer
![](https://koobas.hobune.stream/wayback/20220613084819im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
real life time 2 Answers
Problem creating a script to destroy object on collision. 1 Answer
Random time activate/deactivate object 1 Answer
How Can I Drag the Object With Touch ? (Mobile) 4 Answers
My variable doesn't update real-time? 2 Answers