Jump to content

Recommended Posts

Posted

Hi all


I have used the @YEAR @MON @MDAY  @HOUR @MIN @SEC variables in the past,
and now I need something a bit different:


I need to get the current Date and Time, and then Add/Subtract a certain amount of time from it, e.g. 30mins.


Technically I can implement it myself, via Adding/Subtracting to/from the @MIN variable, and start calculating the bigger variables above it (if needed),
and furthermore the Date itself, if it is affected it too.

Yet most programming languages have a DateTime object that enables doing it.

As far as I know, AutoIt doesn't have anything like this.

A different thing that could help, is a variable that contains the # of seconds since some specific time in the past,
and a Function to calculate the (@YEAR @MON @MDAY  @HOUR @MIN @SEC) variables To and From it.
Is there maybe something like this?


Thank you

Posted (edited)

Isn't precisely that which _DateAdd() does?

Look in help about the Date.au3 include.

Edited by jchd

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

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
×
×
  • Create New...