flag time-only

Mode: Configuration Mode

Description:

Time-type attributes consist of date (YYYY-MM-DD) and time (HH:MM:SS) portions. Flag time-only allows users to input only the time portion as valid specification, entering the date portion results in syntax error.

Example:

        object newbie {
            help "Newbie settings";

            attribute now {
                help "Setting today's date";
                flag time-only;
                type time;
            }
        }

Display:

        user@router# set example newbie now ?
        Possible completions:
          <now>                Setting current time
        [edit]
        user@router# set example newbie now 16:46:00 

        [edit]
        user@router# commit 
        commit complete

        [edit]
        user@router# show example 
        newbie {
            now "16:46:00 -0700";
        }

        [edit]
        user@router# set example newbie now 2006-10-23   
                                                    ^
        Invalid time specification at '2006-10-23'

Topics for further reading:

See also:
date-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:12 2010 for DDL Reference Guide by doxygen 1.4.5