Local FileDate (PB4.0)

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
horst
Enthusiast
Enthusiast
Posts: 197
Joined: Wed May 28, 2003 6:57 am
Location: Munich
Contact:

Local FileDate (PB4.0)

Post by horst »

Would be nice to have an optional flag #PB_Date_Local to get the local time+date instead of UTC. Then we would not need this procedure (Win):

Code: Select all

Procedure UTCtoLocal(UTCdate)  
  GetTimeZoneInformation_(@tzi.TIME_ZONE_INFORMATION)
ProcedureReturn UTCdate - tzi\bias * 60    
EndProcedure 
Horst.