Skip to main content

date command errors

This topic lists error messages for the date command.

See Common errors for a list of error messages that apply to all commands. See date command for information about command syntax and examples of command use.

Table 1. date command errors.

The error table is a multi-row, two-column table where each row describes a CMM CLI command error: column one lists the error reported by the command-line interface and column two describes what the error means.

Error messageDefinition
'-v' must be used with 'date -tz all' onlyA user tries to issue a command with the -v option with an option other than -tz.
'date -tz all' must be used exclusive of other options except '-v'A user tries to issue a command with the -tz option at the same time as other options (other than -v).
Getting current date and time failedAn error occurred while the system was retrieving current date and time information.
Getting time zones failedAn error occurred while the system was retrieving time zone information.
Invalid value for dayA user tries to enter an invalid argument for day in the date (-d) option.
Invalid value for hoursA user tries to enter an invalid argument for hours in the time (-t) option.
Invalid value for minutesA user tries to enter an invalid argument for minutes in the time (-t) option.
Invalid value for monthA user tries to enter an invalid argument for month in the date (-d) option.
Invalid value for secondsA user tries to enter an invalid argument for seconds in the time (-t) option.
Invalid value for yearA user tries to enter an invalid argument for year in the date (-d) option.
No time zone foundAn error occurred while the system was retrieving time zone information.
NTP is enabled. Please use 'ntp' command to disable NTP before configuring date or timeA user tries to configure date or time setting while the system is configured to use Network Time Protocol (NTP).
The year has to be between min and max

where min and max define the range of years that is allowed.

A user tries to enter a year that is outside of the allowed range.