Page 1 of 1

How do I get the current time on os x?

Posted: Mon Feb 11, 2013 11:39 am
by ozak
Hi all

I can't seem to find the function for getting the current time (I need it for a log system) on Purebasic OS X

Thanks in advance

Re: How do I get the current time on os x?

Posted: Mon Feb 11, 2013 6:11 pm
by WilliamL
Look in 'Help' for "Date()"

(from Help file)

Code: Select all

Date$ = FormatDate("%yyyy/%mm/%dd", Date())
Time$ = FormatDate("%hh:%ii:%ss", Date())

MessageRequester("PureBasic - Date Example", "Date: "+Date$+Chr(10)+"Time: "+Time$, 0)