type time

Mode: Configuration Mode

Description:

Type time attributes accepts strings consist of absolute date and/or time components, or relative time components

By default, it accepts date.time format:

Accepted date formats:

Accepted time formats:

Accepted relative date/time formats:

The time is displayed in the timezone the router is configured.

Flags date-only and time-only can be used to restrict the input to only that portion of the time format.

Example:

        object newbie {
            help "Newbie settings";

            attribute starttime {
                help "Testing time";
                type time;
            }
        }

Display:

        user@router# set example newbie starttime ?
        Possible completions:
          <starttime>          Testing time
        [edit]
        user@router# set example newbie now
        
        [edit]
        user@router# show example
        newbie {
            starttime "2005-1-1.10:21:21 -0800";
        }

        [edit]
        user@router# set example newbie day
        
        [edit]
        user@router# show example
        newbie {
            starttime "2005-1-2.10:21:59 -0800";
        }

        [edit]
        user@router# set example newbie starttime "2001-12-25.10:1:2 EST"    

        [edit]
        user@router# show example
        newbie {
            starttime "2001-12-25.07:01:02 -0800";
        }

        [edit]

See also:
flag date-only, flag time-only

Reference (to programmers guide/style guide):


2007-2008 Juniper Networks, Inc. All rights reserved. The information contained herein is confidential information of Juniper Networks, Inc., and may not be used, disclosed, distributed, modified, or copied without the prior written consent of Juniper Networks, Inc. in an express license. This information is subject to change by Juniper Networks, Inc. Juniper Networks, the Juniper Networks logo, and JUNOS are trademarks of Juniper Networks, Inc.
Generated on Sun May 30 20:23:13 2010 for DDL Reference Guide by doxygen 1.4.5