UTC time conversion

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Lebostein
Addict
Addict
Posts: 807
Joined: Fri Jun 11, 2004 7:07 am

UTC time conversion

Post by Lebostein »

Please add UTC functionality

1. An extra flag for file date functions for returning the UTC time instead of the local time:
GetFileDate(filename, type | #PB_Date_UTC)
DirectoryEntryDate(directory, type | #PB_Date_UTC)

2. An new Date() function
DateUTC() or an extra flag for Date() if it is possible

3. Time conversion routines
ConvertDate(date, flag) flag = #PB_Date_To_Local OR #PB_Date_To_UTC
User avatar
Sicro
Enthusiast
Enthusiast
Posts: 538
Joined: Wed Jun 25, 2014 5:25 pm
Location: Germany
Contact:

Re: UTC time conversion

Post by Sicro »

+1
Image
Why OpenSource should have a license :: PB-CodeArchiv-Rebirth :: Pleasant-Dark (syntax color scheme) :: RegEx-Engine (compiles RegExes to NFA/DFA)
Manjaro Xfce x64 (Main system) :: Windows 10 Home (VirtualBox) :: Newest PureBasic version
wayne-c
Enthusiast
Enthusiast
Posts: 335
Joined: Tue Jun 08, 2004 10:29 am
Location: Zurich, Switzerland

Re: UTC time conversion

Post by wayne-c »

+1
As you walk on by, Will you call my name? Or will you walk away?
Post Reply