Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

tai64nlocal(8) [debian man page]

tai64nlocal(8)						      System Manager's Manual						    tai64nlocal(8)

NAME
tai64nlocal - converts precise TAI64N timestamps to a human-readable format. SYNOPSIS
tai64nlocal DESCRIPTION
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(8), and writes the line to stdout with the timestamp con- verted to local time in ISO format: YYYY-MM-DD HH:MM:SS.SSSSSSSSS. For example, in the US/Pacific time zone, the input line @4000000037c219bf2ef02e94 mark should be printed as 1999-08-23 21:03:43.787492500 mark Beware, however, that the current implementation of tai64nlocal relies on the UNIX localtime library routine to find the local time. Some localtime implementations use a broken time scale that does not account for leap seconds. On systems that use the Olson tz library (with an up-to-date leap-second table), you can fix this problem by setting your time zone to, e.g, right/US/Pacific instead of US/Pacific. Beware also that most localtime implementations are not Y2038-compliant. tai64nlocal does not allocate any memory after it starts, except possibly inside localtime. EXIT CODES
tai64nlocal exits 0 when it sees end of input. It exits 111 without an error message if it has trouble reading stdin or writing stdout. SEE ALSO
supervise(8), svc(8), svok(8), svstat(8), svscanboot(8), svscan(8), readproctitle(8), fghack(8), pgrphack(8), multilog(8), tai64n(8), setu- idgid(8), envuidgid(8), envdir(8), softlimit(8), setlock(8) http://cr.yp.to/daemontools.html tai64nlocal(8)

Check Out this Related Man Page

DateTime::TimeZone::Local::Unix(3)			User Contributed Perl Documentation			DateTime::TimeZone::Local::Unix(3)

NAME
DateTime::TimeZone::Local::Unix - Determine the local system's time zone on Unix VERSION
version 1.63 SYNOPSIS
my $tz = DateTime::TimeZone->new( name => 'local' ); my $tz = DateTime::TimeZone::Local->TimeZone(); DESCRIPTION
This module provides methods for determining the local time zone on a Unix platform. HOW THE TIME ZONE IS DETERMINED
This class tries the following methods of determining the local time zone: o $ENV{TZ} It checks $ENV{TZ} for a valid time zone name. o /etc/localtime If this file is a symlink to an Olson database time zone file (usually in /usr/share/zoneinfo) then it uses the target file's path name to determine the time zone name. For example, if the path is /usr/share/zoneinfo/America/Chicago, the time zone is "America/Chicago". Some systems just copy the relevant file to /etc/localtime instead of making a symlink. In this case, we look in /usr/share/zoneinfo for a file that has the same size and content as /etc/localtime to determine the local time zone. o /etc/timezone If this file exists, it is read and its contents are used as a time zone name. o /etc/TIMEZONE If this file exists, it is opened and we look for a line starting like "TZ = ...". If this is found, it should indicate a time zone name. o /etc/sysconfig/clock If this file exists, it is opened and we look for a line starting like "TIMEZONE = ..." or "ZONE = ...". If this is found, it should indicate a time zone name. o /etc/default/init If this file exists, it is opened and we look for a line starting like "TZ=...". If this is found, it should indicate a time zone name. AUTHOR
Dave Rolsky <autarch@urth.org> COPYRIGHT AND LICENSE
This software is copyright (c) 2013 by Dave Rolsky. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.16.3 2013-10-28 DateTime::TimeZone::Local::Unix(3)
Man Page

Featured Tech Videos