Date and Time

The following functions are provided to obtain date and time information for the system date, according to local time.

  • SysHour() returns the hour of day.

  • SysMin() returns the minute of current hour.

  • SysSec() Returns the second of current hour.

  • SysDay() returns the day for the system date

  • SysMonth() returns the month for the system date.

  • SysWDay() returns the week day for the system date.

  • SysYDay() returns the year day (1-365) for the system date.

  • SysYear() returns the year for the system date.

  • SysTime$() returns a local time and date in the format 'DDD MMM DNHH:MM:SS YYYY'

The previous functions return value accordingly to the following ranges:

  • Seconds: 0 to 59

  • Minutes: 0 to 59

  • Hour: 0 to 23

  • Day of month: 1 to 31

  • Month of year: 1 to 12

  • Day of week: 0 to 6, where Sunday = 0

  • Day of year: 0 to 365.

  • Year: since 1900.

Example:

Print "Today is "; SysTime$()

The output will look like this:

Today is Thu May 15 21:03:15 2014