GregThompson Posted December 1, 2008 Posted December 1, 2008 I want to basically do this: select convert(datetime, dateadd(s, 1228147305, '1/1/1970'))) = '2008-12-01 06:00:04.000') But in AutoIT? Is this possible?
ProgAndy Posted December 1, 2008 Posted December 1, 2008 There is a func called _DateAdd #include <Date.au3> $date = _DateAdd("s",1228147305,"1970/1/1 00:00:00") MsgBox(0, '', $date) *GERMAN* [note: you are not allowed to remove author / modified info from my UDFs]My UDFs:[_SetImageBinaryToCtrl] [_TaskDialog] [AutoItObject] [Animated GIF (GDI+)] [ClipPut for Image] [FreeImage] [GDI32 UDFs] [GDIPlus Progressbar] [Hotkey-Selector] [Multiline Inputbox] [MySQL without ODBC] [RichEdit UDFs] [SpeechAPI Example] [WinHTTP]UDFs included in AutoIt: FTP_Ex (as FTPEx), _WinAPI_SetLayeredWindowAttributes
GregThompson Posted December 5, 2008 Author Posted December 5, 2008 There is a func called _DateAdd #include <Date.au3> $date = _DateAdd("s",1228147305,"1970/1/1 00:00:00") MsgBox(0, '', $date) thanks a bunch!
GregThompson Posted December 5, 2008 Author Posted December 5, 2008 Let me rephrase the question... I want to take a DATE/TIME, and convert it to the long number, not the other way around.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now