SaTan Posted February 17, 2009 Share Posted February 17, 2009 Calculation of a cross-century the number of seconds _DateDiff( 's',"1970/01/01 08:00:00","2006/12/12 13:10:00") Do not know what function can calculate the number of seconds to date know please help me thank Link to comment Share on other sites More sharing options...
BrettF Posted February 17, 2009 Share Posted February 17, 2009 Hi, Not sure what problem you are having? This code works: #include <Date.au3> $date_from = "1970/01/01 00:00:00";EPOCH $date_now = "2006/12/12 13:10:00" $diff = _DateDiff ("s", $date_from, $date_now) MsgBox (0, "", $diff & " seconds since " & $date_from) Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
SaTan Posted February 17, 2009 Author Share Posted February 17, 2009 #include <Date.au3>$date_from = "1970/01/01 00:00:00";EPOCH$date_now = "2006/12/12 13:10:00"$diff = _DateDiff ("s", $date_from, $date_now)MsgBox (0, "", $diff & " seconds since " & $date_from)Against seconds since to DateExamples#include <Date.au3>$date_from = "1970/01/01 00:00:00";EPOCH$date_now = "1165929000"$date =??("??,$date_from, $date_now)MsgBox (0, "", $date_from & " seconds since to Date" & $date) Link to comment Share on other sites More sharing options...
BrettF Posted February 17, 2009 Share Posted February 17, 2009 (edited) Please ask again in English that I can actually understand! Thanks, Brett EDIT: Actually do you mean... #include <Date.au3> $date_from = "1970/01/01 00:00:00";EPOCH $date_now = "2006/12/12 13:10:00" $diff = _DateDiff ("s", $date_from, $date_now) MsgBox (0, "", $diff & " seconds since " & $date_from) $date_since = _DateAdd ("s", 0-$diff, $date_now) MsgBox (0, "", $date_since) Edited February 17, 2009 by BrettF Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
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