Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ cal — Apollo

Media Vault

Software Library

Restoration Projects

Artifacts Sought

SYSCALLS/CAL - calendar routines                           1985/04/30


Include files:

     Fortran:    /sys/ins/cal.ins.ftn
     Pascal:     /sys/ins/cal.ins.pas


Procedures and Functions:

    CAL_$ADD_CLOCK (clock1, clock2)
        Computes the sum of two times.

    CAL_$APPLY_LOCAL_OFFSET (clock)
        Computes the local time from a UTC time.

    seconds = CAL_$CLOCK_TO_SEC (clock)
        Converts system clock units to seconds.

    integer  = CAL_$CMP_CLOCK (clock1, clock2)
        Compares the values of two times.

    CAL_$DECODE_ASCII_DATE (string, stringlength, year, month, day, status)
        Decodes an ASCII string containing a date specification.

    CAL_$DECODE_ASCII_TIME (string, stringlength, hour, minute, second,
                            status)
        Translates an ASCII string containing a time into integers.

    CAL_$DECODE_ASCII_TZDIF (string, stringlength, tz-dif, tz-name, status)
        Translates an ASCII string specifying a time zone into an offset
        from UTC.

    CAL_$DECODE_LOCAL_TIME (decoded_clock)
        Returns the local time in integer format.

    CAL_$DECODE_TIME (clock, decoded_clock)
        Translates an internal system clock value into a readable date
        and time.

    CAL_$ENCODE_TIME (decoded_clock, clock)
        Translates a date and time from integer format
        into a system clock representation.

    CAL_$FLOAT_CLOCK (clock, float_seconds)
        Converts a system clock representation to the equivalent number
        of seconds, in double-precision floating-point format.

    CAL_$GET_INFO (timezone_info)
        Returns local time zone information.

    CAL_$GET_LOCAL_TIME (clock)
        Returns the current local time in
        system clock representation.

    CAL_$APPLY_LOCAL_OFFSET (clock)
        Computes the UTC time from local time.

    CAL_$SEC_TO_CLOCK (seconds, clock)
        Converts seconds to system clock units.

    value  = CAL_$SUB_CLOCK (clock1, clock2)
        Subtracts the values of two times.

    weekday = CAL_$WEEKDAY (year, month, day)
        Computes the day of the week given a year, month, and day.

    CAL_$WRITE_TIMEZONE (timezone_info, status)
        Writes time zone info onto the boot volume.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026