Changes

From SME Server
Jump to navigationJump to search
6 bytes added ,  17:35, 8 January 2015
Line 304: Line 304:  
====Read a TAI64N timestamp in human readable format====
 
====Read a TAI64N timestamp in human readable format====
 
[http://cr.yp.to/daemontools/tai64nlocal.html tai64nlocal] converts precise TAI64N timestamps to a human-readable format.  
 
[http://cr.yp.to/daemontools/tai64nlocal.html tai64nlocal] converts precise TAI64N timestamps to a human-readable format.  
tai64nlocal reads lines from stdin. If a line does not begin with @, tai64nlocal writes it to stdout without change. If a line begins with @, tai64nlocal looks for a timestamp after the @, in the format printed by tai64n, and writes the line to stdout with the timestamp converted to local time in ISO format: YYYY-MM-DD HH:MM:SS.SSSSSSSSS.  
+
tai64nlocal reads lines from stdin. If a line does not begin with @, tai64nlocal writes it to stdout without change. If a line begins with @, tai64nlocal looks for a timestamp after the @, in the format printed by tai64n, and writes the line to stdout with the timestamp converted to local time in ISO format: YYYY-MM-DD HH:MM:SS.SSSSSSSSS. <br />
 +
 
 
Eg
 
Eg
 
  cat  /var/log/qpsmtpd/current |tai64nlocal|less
 
  cat  /var/log/qpsmtpd/current |tai64nlocal|less
      
====adjust the ntp time====
 
====adjust the ntp time====

Navigation menu