Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
085e9fcb
Commit
085e9fcb
authored
Aug 24, 1996
by
Erik Naggum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Fencode_time, Fset_time_zone_rule): Use UTC if the zone is t.
parent
51bd1843
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
src/editfns.c
src/editfns.c
+8
-3
No files found.
src/editfns.c
View file @
085e9fcb
...
@@ -711,7 +711,7 @@ DEFUN ("encode-time", Fencode_time, Sencode_time, 6, MANY, 0,
...
@@ -711,7 +711,7 @@ DEFUN ("encode-time", Fencode_time, Sencode_time, 6, MANY, 0,
"Convert SECOND, MINUTE, HOUR, DAY, MONTH, YEAR and ZONE to internal time.
\n
\
"Convert SECOND, MINUTE, HOUR, DAY, MONTH, YEAR and ZONE to internal time.
\n
\
This is the reverse operation of `decode-time', which see.
\n
\
This is the reverse operation of `decode-time', which see.
\n
\
ZONE defaults to the current time zone rule. This can
\n
\
ZONE defaults to the current time zone rule. This can
\n
\
be a string (as from `set-time-zone-rule'), or it can be a list
\n
\
be a string
or t
(as from `set-time-zone-rule'), or it can be a list
\n
\
(as from `current-time-zone') or an integer (as from `decode-time')
\n
\
(as from `current-time-zone') or an integer (as from `decode-time')
\n
\
applied without consideration for daylight savings time.
\n
\
applied without consideration for daylight savings time.
\n
\
\n
\
\n
\
...
@@ -757,7 +757,9 @@ If you want them to stand for years in this century, you must do that yourself."
...
@@ -757,7 +757,9 @@ If you want them to stand for years in this century, you must do that yourself."
char
*
tzstring
;
char
*
tzstring
;
char
**
oldenv
=
environ
,
**
newenv
;
char
**
oldenv
=
environ
,
**
newenv
;
if
(
STRINGP
(
zone
))
if
(
zone
==
Qt
)
tzstring
=
"UTC0"
;
else
if
(
STRINGP
(
zone
))
tzstring
=
(
char
*
)
XSTRING
(
zone
)
->
data
;
tzstring
=
(
char
*
)
XSTRING
(
zone
)
->
data
;
else
if
(
INTEGERP
(
zone
))
else
if
(
INTEGERP
(
zone
))
{
{
...
@@ -914,7 +916,8 @@ static char **environbuf;
...
@@ -914,7 +916,8 @@ static char **environbuf;
DEFUN
(
"set-time-zone-rule"
,
Fset_time_zone_rule
,
Sset_time_zone_rule
,
1
,
1
,
0
,
DEFUN
(
"set-time-zone-rule"
,
Fset_time_zone_rule
,
Sset_time_zone_rule
,
1
,
1
,
0
,
"Set the local time zone using TZ, a string specifying a time zone rule.
\n
\
"Set the local time zone using TZ, a string specifying a time zone rule.
\n
\
If TZ is nil, use implementation-defined default time zone information."
)
If TZ is nil, use implementation-defined default time zone information.
\n
\
If TZ is t, use Universal Time."
)
(
tz
)
(
tz
)
Lisp_Object
tz
;
Lisp_Object
tz
;
{
{
...
@@ -922,6 +925,8 @@ If TZ is nil, use implementation-defined default time zone information.")
...
@@ -922,6 +925,8 @@ If TZ is nil, use implementation-defined default time zone information.")
if
(
NILP
(
tz
))
if
(
NILP
(
tz
))
tzstring
=
0
;
tzstring
=
0
;
else
if
(
tz
==
Qt
)
tzstring
=
"UTC0"
;
else
else
{
{
CHECK_STRING
(
tz
,
0
);
CHECK_STRING
(
tz
,
0
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment