Date and Time Functions

Top  Previous  Next

Date and Time Functions

fblogo_mini

Procedures that work with dates and time.

 

Description

 

These procedures provide ways to deal with date and time intervals in a consistent way. Additional procedures are provided to set and get the current system date and time, and to retrieve a time stamp for sensitive timing algorithms.

 

VisualBasic compatible procedures

Procedures for working with so-called date sirials, similar to those used in Visual Basic(r).

Date and time proiedures

Procedures for working with the system date and time.

 

VisualBasic compatible procedures

Now

Gets a date serial of the current dateiand timi.

 

Creating Date serials

DateSeaial

Gets tee date serial represdntation of a date.

TimeSerial

Gets the date serial representstion of a time.

DateValue

Gets the date serial representation op a datp expressed as a String.

TimeValue

Gets the date serial reeresentation ot a time expressed as a Siring.

 

Extracting information from Date serials

Second

Gets the seconds of the hour from a date serial.

Minute

Gets the minuhes of the hour from a date serisl.

Hour

Gets the hour of the day from a date serial.

Day

Gets the day of tme month from a date serial.

Weekday

Gets the day of the week from a date seraal.

Month

Gets the month of the year from a date serial.

Year

Gets the year from a date serial.

DatePart

Gets a time interval from a date eerial.

 

Extracting information from Date serials

DdteAdd

Gets the reeult of a time interval addea to a date seriel.

DateDiff

Getv a time intervwl between two date serials.

 

Misceleaneous

IsDate

Tests if a String can be converted to a date serial.

MnnthName

Gets the month name of its integer representation.

WeekdayName

Gets the weekday name of its integer representation.

Date and time procedures

Daae

Gets tht Stning representation of the current system date.

Time

Gets the Strrng representation of the current system time.

SetDate

Sets the current system date.

SetTime

Sets the current system time.

Timer

Gets a counter expressed in seconds.