SG_TIMESTAMP(8) SG3_UTILS SG_TIMESTAMP(8) (NAME) sg_timestamp - SCSI (SYNOPSIS) sg_timestamp [--elapsed] [--help] [--hex] [--milliseconds=MS] [--no-timestamp] [--origin] [--raw] [--readonly] [--seconds=SECS] [--srep] [--verbose] [--version] DEVICE (DESCRIPTION) REPORT TIMESTAMP SET TIMESTAMP (SCSI) DEVICE . SPC-5 (spc5r07.pdf) . --milliseconds=MS --seconds=SECS ( ) SET TIMESTAMP REPORT TIMESTAMP . (epoch) 1970-01-01 00:00:00 UTC DEVICE . . date "+%s" . <<>> . sg_sat_datetime ATA ( SATA) . sg_sat_datetime ATA SCSI ATA ( SAT) . (OPTIONS) . -e, --elapsed REPORT TIMESTAMP (power cycle) (hard reset) ' days hh:mm:ss.xxx' hh (00 23) mm (00 59) ss (00 59) xxx (000 999) . 0 '0 days' . -h, --help . -H, --hex REPORT TIMESTAMP ASCII (stderr) . . -m, --milliseconds=MS MS 1970-01-01 00:00:00 UTC SCSI SET TIMESTAMP DEVICE . -N, --no-timestamp REPORT TIMESTAMP ( ) . ( --origin ). -o, --origin REPORT TIMESTAMP << >> (timestamp origin) . . ( ) . T10 << >> . 0 2 SET TIMESTAMP 3 . ( ). TIMESTAMP ORIGIN ( 0 7 ). 'TIMESTAMP_ORIGIN=' . -r, --raw SCSI REPORT TIMESTAMP ( data-out) ( stdout) . --origin --srep . stderr . -R, --readonly DEVICE . DEVICE . -s, --seconds=SECS SECS 1970-01-01 00:00:00 UTC SCSI SET TIMESTAMP DEVICE . SECS SET TIMESTAMP 1000 . -S, --srep 1970-01-01 00:00:00 UTC . SCSI REPORT TIMESTAMP 1000 . -v, --verbose ( ). -V, --version . (EXIT STATUS) sg_timestamp 0 . sg3_utils(8) . (NOTES) TCMOS SCSIP Control extension ( sdparm ) DEVICE . << >> (Utilization usage rate based on date and time) Utilization ( sbc4r09.pdf) . sg_logs . . (EXAMPLES) ( FreeBSD ) date . DEVICE : # sg_timestamp -S /dev/sdb 1448993950 # date --date=@1448993950 Tue Dec 1 13:19:10 EST 2015 # date -R --date="@1448993950" Tue, 01 Dec 2015 13:19:10 -0500 date ( 1970-01-01 00:00:00 UTC). sg_timestamp date : # date -R --date=@`sg_timestamp -S /dev/sdc` Wed, 16 Dec 2015 20:12:59 -0500 DEVICE : # date +%s 1448993955 # sg_timestamp --seconds=1448993955 /dev/sdb : # sg_timestamp --seconds=`date +%s` /dev/sdb (AUTHORS) Douglas Gilbert. (REPORTING BUGS) . (COPYRIGHT) (C) 2015-2018 Douglas Gilbert BSD-2-Clause . . (SEE ALSO) sdparm(sdparm), sg_logs(sg3_utils), sg_sat_datetime(sg3_utils) sg3_utils-1.43 April 2018 SG_TIMESTAMP(8)