Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Nicolas Wavrant
ZODB
Commits
087380cb
Commit
087380cb
authored
Jan 23, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix str() of a TimeStamp instance to have a fixed width.
parent
ddcb46a2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/ZODB/TimeStamp.c
src/ZODB/TimeStamp.c
+3
-3
No files found.
src/ZODB/TimeStamp.c
View file @
087380cb
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
static
char
TimeStamp_module_documentation
[]
=
static
char
TimeStamp_module_documentation
[]
=
"Defines 64-bit TimeStamp objects used as ZODB serial numbers.
\n
"
"Defines 64-bit TimeStamp objects used as ZODB serial numbers.
\n
"
"
\n
"
"
\n
"
"
\n
$Id: TimeStamp.c,v 1.1
0 2001/11/28 15:51:20 matt
Exp $
\n
"
;
"
\n
$Id: TimeStamp.c,v 1.1
1 2002/01/23 16:30:05 gvanrossum
Exp $
\n
"
;
#include <stdlib.h>
#include <stdlib.h>
#include <time.h>
#include <time.h>
...
@@ -333,7 +333,7 @@ TimeStamp_str(TimeStamp *self)
...
@@ -333,7 +333,7 @@ TimeStamp_str(TimeStamp *self)
int
l
;
int
l
;
TimeStamp_parts
(
self
);
TimeStamp_parts
(
self
);
l
=
sprintf
(
buf
,
"%4.4d-%2.2d-%2.2d %2.2d:%2.2d:%f"
,
l
=
sprintf
(
buf
,
"%4.4d-%2.2d-%2.2d %2.2d:%2.2d:%
09.6
f"
,
TimeStamp_y
,
TimeStamp_m
,
TimeStamp_d
,
TimeStamp_y
,
TimeStamp_m
,
TimeStamp_d
,
TimeStamp_mi
/
60
,
TimeStamp_mi
%
60
,
TimeStamp_sec
(
self
));
TimeStamp_mi
/
60
,
TimeStamp_mi
%
60
,
TimeStamp_sec
(
self
));
...
@@ -412,7 +412,7 @@ void
...
@@ -412,7 +412,7 @@ void
initTimeStamp
(
void
)
initTimeStamp
(
void
)
{
{
PyObject
*
m
,
*
d
,
*
s
;
PyObject
*
m
,
*
d
,
*
s
;
char
*
rev
=
"$Revision: 1.1
0
$"
;
char
*
rev
=
"$Revision: 1.1
1
$"
;
if
(
TimeStamp_init_gmoff
()
<
0
)
return
;
if
(
TimeStamp_init_gmoff
()
<
0
)
return
;
if
(
!
ExtensionClassImported
)
return
;
if
(
!
ExtensionClassImported
)
return
;
...
...
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