DATE

Set or display current date

DATE

Show the date and time of the switch, in syncd’s local time zone, as YYYY/MM/DD hh:mm:ss <zone>. Read-only.

The built-in help says that date "YYYY/MM/DD hh:mm:ss" sets the date. It does not: this build cannot set the clock. It prints Don't know how to set date on this platform (…) and fails. Use the host’s tools instead.

Hardware-validated

drivshell> date
2026/10/28 22:35:37 UTC

Unvalidated

drivshell> date "2026/10/28 12:00:00"

Built-in help

Parameters: "YYYY/MM/DD hh:mm:ss"
    If no options are given, displays the current date.  If date is
    specified in format shown (quotes required), sets the current date.
    Date must be in local time according to the time zone.

Further reading

SDK-6.5.20 HSDK Getting Started Guide (GS-SDK6520-R), plus SDK-6.5.20/21/22 Release Notes (RN-SDK65xx-R), OpenBCM sdk-6.5.27/rc: rc.soc, config.bcm, td3_sanity.soc, cmd_td3_tr514_lr.soc, tr51/tr517_bcm56870_a0.soc, bcm_diag_info.soc …, BCM_SDK命令.