Created
February 12, 2020 09:06
-
-
Save yyamasak/a052af582fec673ee1a1720665ef87c1 to your computer and use it in GitHub Desktop.
Revisions
-
yyamasak created this gist
Feb 12, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ 150,152c150,157 < set now [clock seconds] < set x [clock format $now -format "%d/%m%/%Y"] < set rawDate [clock scan "$x 00:00:00" -format "%d/%m%/%Y %H:%M:%S"] --- > if {[info exists $options(-textvariable)]} { > set x [set $options(-textvariable)] > set rawDate [clock scan "$x" -format $options(-dateformat)] > } else { > set now [clock seconds] > set x [clock format $now -format "%d/%m%/%Y"] > set rawDate [clock scan "$x 00:00:00" -format "%d/%m%/%Y %H:%M:%S"] > }