docs.intersystems.com
InterSystems IRIS Data Platform 2019.2  /  InterSystems Programming Tools Index

InterSystems Programming Tools Index
Current Date and Time
Previous section           Next section
InterSystems: The power behind what matters   
Search:  


Obtain the current date and time.
Background Information
Each language provides system variables or functions that provide the current system time. See ObjectScript Reference and InterSystems SQL Reference.
In many InterSystems IRIS applications, dates and times are stored and transmitted in a format called $H format or $HOROLOG format. For an introduction, see “Date and Time Values” in the Orientation Guide for Server-Side Programming.
Available Tools
In addition, InterSystems provides the following tools:
%SYSTEM.SYS class
Includes the following class methods that return current date/time values:
Availability: All namespaces.
%Library.Utility class
Includes the following class methods that return current date/time values:
Availability: All namespaces.
%Library.UTC class
Includes the following class methods that return current date/time values:
Availability: All namespaces.
Reminder
The special variable $SYSTEM is bound to the %SYSTEM package. This means that instead of ##class(%SYSTEM.class).method(), you can use $SYSTEM.class.method().
See Also


Previous section           Next section
Send us comments on this page
View this book as PDF   |  Download all PDFs
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA
Content Date/Time: 2019-08-22 06:48:58