Jump to content

Difference Between Times


Recommended Posts

Try "C:\Program Files\AutoIt3\Include\Date.au3" if you ran a recent AutoIt installer.

See also "Library Function Reference" in the help file :whistle:

Edit:Ooops, it appears it hasn't been added. Maybe wait a few hours to see if it shows up?

Edited 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

You can find it if you search on "time" .. but it doesn't have a link from the Library Function Reference topic in Contents :whistle:

Edit: Oops .. it is there after all B) .. see _TimeToTicks etc in Function Reference \ Library Function Reference

Edited by trids
Link to comment
Share on other sites

  • Developers

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

This 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

  • Administrators

Ummm, I can't see DateDiff in the released version of AutoIt 3... is it there?

Chris

Doesn'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.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...