CentOS 7.0 - man page for datetime::timezone::local::unix (centos section 3)

Linux & Unix Commands - Search Man Pages

Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)


DateTime::TimeZone::Local::UnixUser Contributed Perl DocumentatDateTime::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)
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums


All times are GMT -4. The time now is 02:03 AM.

Unix & Linux Forums Content Copyright©1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?