Mercurial > hg > egg-tcls
diff feeds.tcl @ 422:880a07485275
Add utl_ctime() to utillib and use it elsewhere.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sun, 08 Jan 2017 03:52:15 +0200 |
parents | 9a33575eb999 |
children | 44c9128097cd |
line wrap: on
line diff
--- a/feeds.tcl Sun Jan 08 01:44:19 2017 +0200 +++ b/feeds.tcl Sun Jan 08 03:52:15 2017 +0200 @@ -19,6 +19,9 @@ ### you wish. See "config.feeds.example" for an example config file. source [file dirname [info script]]/config.feeds +### Required utillib.tcl +source [file dirname [info script]]/utillib.tcl + ########################################################################## # No need to look below this line @@ -57,13 +60,6 @@ } } -proc feeds_ctime {utime} { - if {$utime == "" || $utime == "*"} { - set utime 0 - } - return [clock format $utime -format "%d.%m.%Y %H:%M"] -} - ### Open database, etc if {[catch {sqlite3 feeds_dbh $feeds_dbfile} uerrmsg]} {