GMT time...

BlitzMax Forums/BlitzMax Beginners Area/GMT time...

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Import pub.stdc

Extern "C"
	Function gmtime_:Byte Ptr(time:Byte Ptr) = "gmtime"
End Extern

Local calendarTime[1], buff:Byte[256]

time_(calendarTime)

strftime_(buff, buff.length, "%A %d %B %Y - %H:%M:%S (%Z)", localtime_(calendarTime))
Print String.FromCString(buff)

strftime_(buff, buff.length, "%A %d %B %Y - %H:%M:%S", gmtime_(calendarTime))
Print String.FromCString(buff) + " (GMT Standard Time)"

??