Chris_1013 Posted February 27, 2004 Share Posted February 27, 2004 I know I've seen a DateDiff UDF knocking about somewhere, but has anyone already written code (it's Friday, I'm lazy and tired), for working out the amount of time between now and a time later today? Thanks Chris Link to comment Share on other sites More sharing options...
CyberSlug Posted February 27, 2004 Share Posted February 27, 2004 (edited) Try "C:\Program Files\AutoIt3\Include\Date.au3" if you ran a recent AutoIt installer.See also "Library Function Reference" in the help file Edit:Ooops, it appears it hasn't been added. Maybe wait a few hours to see if it shows up? Edited February 27, 2004 by CyberSlug Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
trids Posted February 27, 2004 Share Posted February 27, 2004 (edited) You can find it if you search on "time" .. but it doesn't have a link from the Library Function Reference topic in Contents Edit: Oops .. it is there after all .. see _TimeToTicks etc in Function Reference \ Library Function Reference Edited February 27, 2004 by trids Link to comment Share on other sites More sharing options...
Developers Jos Posted February 27, 2004 Developers Share Posted February 27, 2004 I know I've seen a DateDiff UDF knocking about somewhere, but has anyone already written code (it's Friday, I'm lazy and tired), for working out the amount of time between now and a time later today? Thanks ChrisThis is more or less the list of UDF's in Date.au3 that will be in the new release soon and includes the DateDiff your asking for: _DateAdd Calculates a new date based on a given date and add an interval. _DateDayOfWeek Returns the name of the weekday, based on the specified day. _DateDiff Returns the difference between 2 dates, expressed in the type requested _DateIsLeapYear Returns 1 if the specified year falls on a leap year and returns 0 if it does not. _DateIsValid Verify if date and time are valid "yyyy/mm/dd[ hh:mm[:ss]]". _DateLastWeekdayNum Returns previous weekday number, based on the specified day of the week. _DateLastMonthNum Returns previous month number, based on the specified month. _DateLastMonthYear Returns previous month's year, based on the specified month and year. _DateMonthOfYear Returns the name of the month, based on the specified month. _DateNextWeekdayNum Returns next weekday number, based on the specified day of the week. _DateNextMonthNum Returns next month number, based on the specified month. _DateNextMonthYear Returns next month's year, based on the specified month and year. _DayOfWeek Returns the DayofWeek number for a given Date. 0=Sunday _FormatDateTime Returns the date in the PC's regional settings format. _JulianDayNo Returns the Julian date for a given Gregorian date. _Julian2Date Returns the Gregorian date for a given Julian date _Now Returns the current Date in the pc's format _NowDateTime Returns the current Date and Time in the pc's format _NowTime Returns the current Date and Time in the pc's format _SplitDateTime Split Date and Time into two separateArrays. _TicksToTime Converts the specified tick amount to hours, minutes, and seconds. _TimeToTicks Converts the specified hours, minutes, and seconds to ticks. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Chris_1013 Posted February 27, 2004 Author Share Posted February 27, 2004 Excellent, I eagerly await it :-) Link to comment Share on other sites More sharing options...
Chris_1013 Posted March 2, 2004 Author Share Posted March 2, 2004 Ummm, I can't see DateDiff in the released version of AutoIt 3... is it there? Chris Link to comment Share on other sites More sharing options...
Administrators Jon Posted March 2, 2004 Administrators Share Posted March 2, 2004 Ummm, I can't see DateDiff in the released version of AutoIt 3... is it there?ChrisDoesn't seem to be there. When I get the next update from Jeremy I'll keep an updated version available on the website like the Extra directory. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ 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