how to get device time?

i have tryed to use os.clock(), system.getTimer() dont this isnt what i want… i want to catch the real time of iphone have… like if now it’s 12:19 AM I want to show the “12:19” anyone can help me? [import]uid: 23063 topic_id: 11305 reply_id: 311305[/import]

Use os.date() and parse the return value.

http://developer.anscamobile.com/reference/index/osdate [import]uid: 58455 topic_id: 11305 reply_id: 41043[/import]

os.time() function [import]uid: 29181 topic_id: 11305 reply_id: 41104[/import]