| Line 1... |
Line 1... |
| 1 |
% File src/library/base/man/timezones.Rd
|
1 |
% File src/library/base/man/timezones.Rd
|
| 2 |
% Part of the R package, http://www.R-project.org
|
2 |
% Part of the R package, http://www.R-project.org
|
| 3 |
% Copyright 1995-2011 R Core Team
|
3 |
% Copyright 1995-2013 R Core Team
|
| 4 |
% Distributed under GPL 2 or later
|
4 |
% Distributed under GPL 2 or later
|
| 5 |
|
5 |
|
| 6 |
\name{timezones}
|
6 |
\name{timezones}
|
| 7 |
\alias{Sys.timezone}
|
7 |
\alias{Sys.timezone}
|
| 8 |
\alias{timezone}
|
8 |
\alias{timezone}
|
| Line 22... |
Line 22... |
| 22 |
Sys.timezone()
|
22 |
Sys.timezone()
|
| 23 |
}
|
23 |
}
|
| 24 |
|
24 |
|
| 25 |
\details{
|
25 |
\details{
|
| 26 |
Time zones are a system-specific topic, but these days almost all \R
|
26 |
Time zones are a system-specific topic, but these days almost all \R
|
| 27 |
platforms use the same underlying code, used by Linux, Mac OS X,
|
27 |
platforms use the same underlying code, used by Linux, OS X,
|
| 28 |
Solaris, AIX, FreeBSD, Sun Java >= 1.4 and Tcl >= 8.5, and installed
|
28 |
Solaris, AIX, FreeBSD, Sun Java >= 1.4 and Tcl >= 8.5, and installed
|
| 29 |
with \R on Windows.
|
29 |
with \R on Windows.
|
| 30 |
|
30 |
|
| 31 |
It is not in general possible to retrieve the system's own name(s) for
|
31 |
It is not in general possible to retrieve the system's own name(s) for
|
| 32 |
the current timezone, but \code{Sys.timezone} will retrieve the name
|
32 |
the current timezone, but \code{Sys.timezone} will retrieve the name
|
| Line 100... |
Line 100... |
| 100 |
earlier histories may not.
|
100 |
earlier histories may not.
|
| 101 |
#ifdef unix
|
101 |
#ifdef unix
|
| 102 |
|
102 |
|
| 103 |
For most Unix-alikes use the Olson database. The system-specific
|
103 |
For most Unix-alikes use the Olson database. The system-specific
|
| 104 |
default location in the file system varies, e.g.
|
104 |
default location in the file system varies, e.g.
|
| 105 |
\file{/usr/share/zoneinfo} (Linux, Mac OS X, FreeBSD),
|
105 |
\file{/usr/share/zoneinfo} (Linux, OS X, FreeBSD),
|
| 106 |
\file{/usr/share/lib/zoneinfo} (Solaris, AIX), \file{/usr/etc/zoneinfo},
|
106 |
\file{/usr/share/lib/zoneinfo} (Solaris, AIX), \file{/usr/etc/zoneinfo},
|
| 107 |
\ldots. It is likely that there is a file \file{zone.tab} in that
|
107 |
\ldots. It is likely that there is a file \file{zone.tab} in that
|
| 108 |
directory listing the locations known as time-zone names (but not for
|
108 |
directory listing the locations known as time-zone names (but not for
|
| 109 |
example \code{EST5EDT}). See also
|
109 |
example \code{EST5EDT}). See also
|
| 110 |
\url{http://en.wikipedia.org/wiki/Zone.tab}.
|
110 |
\url{http://en.wikipedia.org/wiki/Zone.tab}.
|