Accessing the time on the phone to use in script?

Hey,

Bit of a random one, but was wondering if there is a way to access the actual time on the phone via script?

For example:

if(timeOnPhone == 12:00){

Do something.

}

Cheers.

If you’re using c#, you can use the system class of .NET to do so:

System.DateTime.Now

You will need to import this namespace as well at the top of your script

import System;