Time Commands

The following functions manipulate and manage time and the system date:

DATE$

Set and retrieve the system date.

DAYNAME$

Converts a Day-of-Week number to the associated name.

IPowerTime.AddDays

Adds or subtracts a specified number of days to value of this object.

IPowerTime.AddHours

Adds or subtracts a specified number of hours to value of this object.

IPowerTime.AddMinutes

Adds or subtracts a specified number of minutes to value of this object.

IPowerTime.AddMonths

Adds or subtracts a specified number of months to value of this object.

IPowerTime.AddMSeconds

Adds or subtracts a specified number of milliseconds to value of this object.

IPowerTime.AddSeconds

Adds or subtracts a specified number of seconds to value of this object.

IPowerTime.AddTicks

Adds or subtracts a specified number of ticks to value of this object.

IPowerTime.AddYears

Adds or subtracts a specified number of years to value of this object.

IPowerTime.DateDiff

Compares the date component of an external PowerTime object with this objects date component.

IPowerTime.DateString

Returns the Date component of the object expressed as a string.

IPowerTime.DateStringLong

Returns the Date component of the PowerTime object, expressed as a string, with a full alphabetic month name.

IPowerTime.Day

Returns the Day component of the object.

IPowerTime.DayOfWeek

Returns the Day-of-Week component of the object.

IPowerTime.DayOfWeekString

Returns the Day-of-Week of the object, expressed as a string (Sunday, Monday...).

IPowerTime.DaysInMonth

Returns the number of days which comprise the month of the date of the PowerTime object.

IPowerTime.FileTime <Get>

Returns a Quad-Integer value of the PowerTime object as a FileTime.

IPowerTime.FileTime <Set>

The FileTime Quad-Integer value specified by the parameter is assigned as the PowerTime object value.

IPowerTime.Hour

Returns the Hour component of the object.

IPowerTime.IsLeapYear

Returns true/false (-1/0) to tell if the object year is a leap year.

IPowerTime.Minute

Returns the Minute component of the object.

IPowerTime.Month

Returns the Month component of the object.

IPowerTime.MonthString

Returns the Month component of the object, expressed as a string (January, February...).

IPowerTime.MSecond

Returns the millisecond component of the PowerTime object.

IPowerTime.NewDate

Assigns a new value to the date component of the PowerTime object.

IPowerTime.NewTime

Assigns a new value to the time component of the PowerTime object.

IPowerTime.Now

The current local date and time on this computer is assigned to this object.

IPowerTime.NowUTC

The current Coordinated Universal date and time (UTC) is assigned to this object.

IPowerTime.Second

Returns the Second component of the object.

IPowerTime.Tick

Returns the Tick component of the object.

IPowerTime.TimeDiff

Compares the time component of an external PowerTime object with this objects time component.

IPowerTime.TimeString

Returns the Time component of the PowerTime object expressed as a string.

IPowerTime.TimeString24

Returns the Time component of the PowerTime object expressed as a string.  The time is formatted as hh:mm in 24-hour notation.

IPowerTime.TimeStringFull

Returns the Time component of the PowerTime object expressed as a string.  The time is formatted as hh:mm:ss.tt in 24-hour notation.

IPowerTime.Today

The current local date on this computer is assigned to this PowerTime object.  This is suitable for applications that work with dates only.

IPowerTime.ToLocalTime

The object is converted to local time.

IPowerTime.ToUTC

The object is converted to Coordinated Universal Time (UTC).

IPowerTime.Year

Returns the Year component of the PowerTime object as a numeric value.

MONTHNAME$

Converts a Month number to the associated name.

SLEEP

Pause the current thread for a specified number of milliseconds.

TIME$

Read and/or set the system time.

TIMER

Return the number of seconds that have elapsed since midnight.

TIX

Measures elapsed CPU cycles.