Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
2d88f747
Commit
2d88f747
authored
May 23, 1993
by
Richard M. Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Fcurrent_time_zone): Assign gmt, instead of init.
parent
ae6756a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
src/editfns.c
src/editfns.c
+7
-5
No files found.
src/editfns.c
View file @
2d88f747
...
...
@@ -634,7 +634,7 @@ Thus, you can use times obtained from `current-time'\n\
and from `file-attributes'.
\n
\
\n
\
Some operating systems cannot provide all this information to Emacs;
\n
\
in this case, current-time-zone
will
return a list containing nil for
\n
\
in this case,
`
current-time-zone
'
return
s
a list containing nil for
\n
\
the data it can't find."
)
(
specified_time
)
Lisp_Object
specified_time
;
...
...
@@ -643,13 +643,15 @@ the data it can't find.")
struct
tm
*
t
;
if
(
lisp_time_argument
(
specified_time
,
&
value
)
&&
(
t
=
gmtime
(
&
value
))
!=
0
)
&&
(
t
=
gmtime
(
&
value
))
!=
0
)
{
struct
tm
gmt
=
*
t
;
/* Make a copy, in case localtime modifies *t. */
struct
tm
gmt
;
long
offset
;
char
*
s
,
buf
[
6
];
t
=
localtime
(
&
value
);
offset
=
difftm
(
t
,
&
gmt
);
gmt
=
*
t
;
/* Make a copy, in case localtime modifies *t. */
t
=
localtime
(
&
value
);
offset
=
difftm
(
t
,
&
gmt
);
s
=
0
;
#ifdef HAVE_TM_ZONE
if
(
t
->
tm_zone
)
...
...
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