FILEDATE?

Previous topic - Next topic

ampos

Can we have the command "GETFILEDATE(f$)"?
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

Kitty Hello

what should it return? An integer with the file time in second since 1.1.1900 ?

kanonet

I would prefer the date to be in the same format like PLATFORMINFO$("TIME").
Lenovo Thinkpad T430u: Intel i5-3317U, 8GB DDR3, NVidia GeForce 620M, Micron RealSSD C400 @Win7 x64

Moru

If you return it as seconds from some epoch you also need to give us some FORMAT_DATE command :-)

Slydog

#4
Or, this came up in another recent thread about file sizes greater than 2Gb, and a solution was a new data type.
You could always create a new DATE data type!

And / or, it really is just a float internally I think (days on left of decimal, time on right side).
Then math functions would work as expected (IF date1 > date2, or date3 = date1 + date2).
You would just need a format function as suggested by Moru.
You could add more functions such as seeding the date value (date1 = DATE_CONVERT(2012, 3, 14, 23, 59, 59)).

If not, kanonet's suggestion makes sense, to make all date functions consistent (if you have existing code already to handle dates).
My current project (WIP) :: TwistedMaze <<  [Updated: 2015-11-25]