time

time -- Specifies the time format for a log or group.

Syntax

(time timespec [label ...])
    

Arguments

timespec

A string of formatting directives, whose options are as follows:

label

An optional log or group label.

Description

The time command lets you specify the time format for any log or group. If no label is specified, this command sets a global default value for all logs and groups. Any specific value always overrides the global definition, regardless of the order in the configuration file or when a command is sent.

You can prepend any printf-style format modifiers to the time spec field names, as appropriate for the field type. Some of these format modifiers will be ignored (e.g., %y and %Y ignore format modifiers). The string-type fields, %J and %M, respond to %s modifiers.

Note

Sub-second fields (%T, %L, %U, %N) usually need to be zero-padded to produce readable results, as in %z.%09N.

See Also

log

Example

    (time  "%02h:%02n:%02z%02H"))
    (time "%j/%m/%y %h:%02n:%02z.%03L" temp press)

Copyright 1995-2002 by Cogent Real-Time Systems, Inc.