Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

$HOROLOG

M[UMPS] by Example

Approved for inclusion in a future M[UMPS] language standard.

This function returns a value that is related to the value of special variable $Horolog.

$Horolog(0) returns a string that is equal to the value of $Horolog, concatenated with a comma, concatenated with an integer number. This integer number is the time zone offset (number of seconds difference with Universally Coordinated Time).

$Horolog(1) returns a value that is similar to the value of $Horolog(0), the difference being that the second piece (number of seconds in local time since midnight) may be a fractional number.

$Horolog(–1) returns a value that is similar to the value of $Horolog, the difference being that the time is represented in UCT (Universally Coordinated Time) rather than local time, and that the second piece (number of seconds since midnight) may be a fractional number.

Assume that the actual time is 18 February 1991, 04:18:43 in Greenwich, England. A system in Washington DC with a high resolution clock would show at that moment:

Reference   Value
$Horolog   54834,83923
$Horolog(0)   54834,83923,18000
$Horolog(1)   54834,83923.43,18000
$Horolog(–1)   54835,15523.43
Button for 1977 Button for 1984 Button for 1990 Button for 1995 Button for MDC Button for notes Button for examples

Copyright © Standard Documents; 1977-2024 MUMPS Development Committee;
Copyright © Examples: 1995-2024 Ed de Moel;
Copyright © Annotations: 2003-2008 Jacquard Systems Research
Copyright © Annotations: 2008-2024 Ed de Moel.

The information in this page is NOT authoritative and subject to be modified at any moment.
Please consult the appropriate (draft) language standard for an authoritative definition.

Some specifications are "approved for inclusion in a future standard". Note that the MUMPS Development Committee cannot guarantee that such future standards will indeed be published.

This page most recently updated on 13-Sep-2014, 16:54:46.

For comments, contact Ed de Moel (demoel@jacquardsystems.com)