* Aug 22 - Update to TimeMakeStamp function, now accepts default keyword for last param.
So, a while ago I asked Valik what the possibilty to implement some of the functions I'm used to in PHP might be. He pointed out that they were available through some Dll calls, and so I created these UDFs. Big thanks to him for the pointers and the help he provided.
The zip has the include file, examples for each function, and the text files for creating help documents for each function.
AutoIt Version: 3.1.1++
Description: Dll wrapper functions for dealing with Unix timestamps.
Notes: If CrtDll.dll is not available then functions will return false and set @error = 99.
_TimeGetStamp - Get current time as Unix timestamp value.
Like the PHP time function.
_TimeMakeStamp - Create Unix timestamp from input values.
Syntax: _TimeMakeStamp( [ second [, minute [, hour [, day [, month [, year [, isDST ]]]]]]] )
Like the PHP mktime function.
_StringFormatTime - Get a string representation of a timestamp according to the format string given to the function.
Syntax: _StringFormatTime( "format" [, timestamp [, max length ]] )
Like the PHP strftime function.
I'm in the process of duplicating PHP's date function as well. Like Valik pointed out, it's mostly just a wrapper for strftime anyway.
Anyway, enjoy, hope somebody finds these useful.
Grab the .au3 from here.
Edit: The broken URL was brought to my attention via email. I don't have it in a zip with examples, but the .au3 file is available at the above link.
Edit 2: Again the URL has been broken for a while, and again brought to my attention via email. The URL has been updated.
Edited by therks, 19 June 2013 - 01:32 PM.