Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sjrpc
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
sjrpc
Commits
75ef910e
Commit
75ef910e
authored
14 years ago
by
Seblu
Browse files
Options
Downloads
Patches
Plain Diff
fix time display in datetime time displaytag type
parent
4fc65dd4
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cccli/tagdisplay.py
+3
-3
3 additions, 3 deletions
cccli/tagdisplay.py
with
3 additions
and
3 deletions
cccli/tagdisplay.py
+
3
−
3
View file @
75ef910e
...
...
@@ -149,15 +149,15 @@ class TagDisplay(object):
def
type_date
(
self
,
value
):
'''
date type
'''
d
=
datetime
.
date
.
fromtimestamp
(
float
(
value
))
d
=
datetime
.
date
time
.
fromtimestamp
(
float
(
value
))
return
d
.
strftime
(
"
%d/%m/%Y
"
)
def
type_time
(
self
,
value
):
'''
date type
'''
d
=
datetime
.
date
.
fromtimestamp
(
float
(
value
))
d
=
datetime
.
date
time
.
fromtimestamp
(
float
(
value
))
return
d
.
strftime
(
"
%H:%M:%S
"
)
def
type_datetime
(
self
,
value
):
'''
date type
'''
d
=
datetime
.
date
.
fromtimestamp
(
float
(
value
))
d
=
datetime
.
date
time
.
fromtimestamp
(
float
(
value
))
return
d
.
strftime
(
"
%d/%m/%Y %H:%M:%S
"
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment