• Alessandro Rubini's avatar
    util: add the perverse SNMP 'string' time format · 0e611221
    Alessandro Rubini authored
    /var/lib/mibs/ietf/SNMPv2-TC
    
    DateAndTime ::= TEXTUAL-CONVENTION
        DISPLAY-HINT "2d-1d-1d,1d:1d:1d.1d,1a1d:1d"
        STATUS       current
        DESCRIPTION
                "A date-time specification.
    
                field  octets  contents                  range
                -----  ------  --------                  -----
                  1      1-2   year*                     0..65536
                  2       3    month                     1..12
                  3       4    day                       1..31
                  4       5    hour                      0..23
                  5       6    minutes                   0..59
                  6       7    seconds                   0..60
                               (use 60 for leap-second)
                  7       8    deci-seconds              0..9
                  8       9    direction from UTC        '+' / '-'
                  9      10    hours from UTC*           0..13
                 10      11    minutes from UTC          0..59
    
                * Notes:
                - the value of year is in network-byte order
                - daylight saving time in New Zealand is +13
    
                For example, Tuesday May 26, 1992 at 1:30:15 PM EDT would be
                displayed as:
    
                                 1992-5-26,13:30:15.0,-4:0
    
                Note that if only local time is known, then timezone
                information (fields 8-10) is not present."
        SYNTAX       OCTET STRING (SIZE (8 | 11))
    Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
    0e611221
Name
Last commit
Last update
..
hw Loading commit data...
libwr Loading commit data...
std Loading commit data...
board-wrc.h Loading commit data...
board-wrs.h Loading commit data...
board.h Loading commit data...
dump-info.h Loading commit data...
endpoint.h Loading commit data...
flash.h Loading commit data...
gpio-wrs.h Loading commit data...
hal_exports.h Loading commit data...
i2c.h Loading commit data...
irq.h Loading commit data...
minic.h Loading commit data...
onewire.h Loading commit data...
pps_gen.h Loading commit data...
ppsi-wrappers.h Loading commit data...
ptpd_netif.h Loading commit data...
revision.h Loading commit data...
rxts_calibrator.h Loading commit data...
sdb.h Loading commit data...
sfp.h Loading commit data...
shell.h Loading commit data...
spll_defs.h Loading commit data...
storage.h Loading commit data...
syscon.h Loading commit data...
system_checks.h Loading commit data...
temperature.h Loading commit data...
trace.h Loading commit data...
types.h Loading commit data...
uart-sw.h Loading commit data...
uart.h Loading commit data...
util.h Loading commit data...
w1.h Loading commit data...
wrc-task.h Loading commit data...
wrc.h Loading commit data...
wrc_ptp.h Loading commit data...