how to check android time

on button press i want to check what time it is and if time equals to time i chose
for example:
if time =09:30
{
NotificationManager.Send(TimeSpan.FromSeconds(1), “Randomtext”, “randomtext”, new Color(1, 0.3f, 0.15f));
}

bellow is a part of the script, as you can see it displays notification after 1 second but i want it to display the notification at certain time for instance : at sunday 08:45…

public void OnGUI ()
{
if (GUILayout.Button(“randomtext”, GUILayout.Height(Screen.height * 0.1f), GUILayout.Width(Screen.width * 0.5f)))
{

NotificationManager.Send(TimeSpan.FromSeconds(1), “Randomtext”, “randomtext”, new Color(1, 0.3f, 0.15f));

i hope i explained it well

Please use code tags, as specified in the sticky thread at the top of every forum here. Also, the use of OnGui() for anything other than Editor scripts is pretty much obsolete, so I would use a canvas to display the message on the screen instead.

There’s no special way of getting the time from an android device, that I know of. You just get it the same way you get time on anything, by using the System.DateTime.Now property in .NET.