Code: Select all
Structure tm
tm_sec.l
tm_min.l
tm_hour.l
tm_mday.l
tm_mon.l
tm_year.l
tm_wday.l
tm_yday.l
tm_isdst.l
EndStructure
ImportC ""
time(*tm)
gmtime(*timep)
EndImport
UTC = time(0)
Debug FormatDate("%hh:%ii:%ss", UTC)
*time.tm = gmtime(@UTC)
Debug *time\tm_hour ; 1. call (seems OK)
Debug *time\tm_hour ; 2. call (different and wrong value)