[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #53916] Document the TZ environment variable
From: |
Ian McCallion |
Subject: |
[Octave-bug-tracker] [bug #53916] Document the TZ environment variable |
Date: |
Tue, 15 May 2018 16:05:04 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36 |
URL:
<http://savannah.gnu.org/bugs/?53916>
Summary: Document the TZ environment variable
Project: GNU Octave
Submitted by: ianmcc
Submitted on: Tue 15 May 2018 08:05:01 PM UTC
Category: Documentation
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Documentation
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 4.4.0
Operating System: Any
_______________________________________________________
Details:
Section 36.1 of the Octave manual should describe the TZ environment variable.
I suggest something like the following:
The TZ environment variable can be used within a process to override the
system's timezone. Octave functions such as localtime that return the dates
and times in local time use the timezone specified in the TZ environment
variable. Specification of TZ can be found here:
https://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html#TZ-Variable.
Functions affected
------------------
localtime, mktime and lstat functions (and possibly others??) are affected by
the TZ environment variable.
Note that the Octave interpreter and GUI are not affected by the TZ variable.
Time and date are not directly displayed, except by scripts and where dates
and times are used internally for example in timestamp comparisons UTC is
used.
Windows/Unix differences
------------------------
The TZ feature IS NOT present in Microsoft Windows, and the posix layer
shipped with Octave for Microsoft Windows only partially emulates TZ, for
example on Windows calls to the underlying operating system that display local
times eg system('dir'), these do not return times in the TZ-specified the
timezone whereas (I assume??) the equivalents on unix do. This is unlikely to
be a problem in practice.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?53916>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #53916] Document the TZ environment variable,
Ian McCallion <=