summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f6e2869)
raw | patch | inline | side by side (parent: f6e2869)
author | Paul Mackerras <paulus@samba.org> | |
Sun, 20 Nov 2005 22:56:07 +0000 (09:56 +1100) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Sun, 20 Nov 2005 22:56:07 +0000 (09:56 +1100) |
It has a fatal flaw in that it only handles timezones that are a
multiple of an hour. It's really only needed with Tk8.5, where
the clock format command has been reimplemented in Tcl and is much
slower than in Tk8.4.
Signed-off-by: Paul Mackerras <paulus@samba.org>
multiple of an hour. It's really only needed with Tk8.5, where
the clock format command has been reimplemented in Tcl and is much
slower than in Tk8.4.
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk | patch | blob | history |
index 58b4abc6930f4eb471d72e7a60ba41eb4f4ad8bd..3dd97e291ed18d45f998d37ae2f66a0bce3b60a9 100755 (executable)
--- a/gitk
+++ b/gitk
}
proc formatdate {d} {
- global hours nhours tfd
+ global hours nhours tfd fastdate
+ if {!$fastdate} {
+ return [clock format $d -format "%Y-%m-%d %H:%M:%S"]
+ }
set hr [expr {$d / 3600}]
set ms [expr {$d % 3600}]
if {![info exists hours($hr)]} {
set maxgraphpct 50
set maxwidth 16
set revlistorder 0
+set fastdate 0
set colors {green red blue magenta darkgrey brown orange}