From 8c031da5f9d433da98c614c999d3d4a0f6bf8b6d Mon Sep 17 00:00:00 2001 From: David Keegan Date: Mon, 28 Oct 2013 11:33:09 +0000 Subject: [PATCH] WIP: hour precision. --- Time.py | 6 +++--- dklrt.el | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Time.py b/Time.py index b90d023..6e0edf8 100755 --- a/Time.py +++ b/Time.py @@ -23,9 +23,9 @@ def _Throw(Msg): Misc.Throw(Msg, ModuleName) def DateParse(Datestr): """Converts a date string to seconds since the epoch.""" Fs = DateFormat; - if length(Datestr) > 16 : Fs = DateFormatHms; - elif length(Datestr) > 13 : Fs = DateFormatHm; - elif length(Datestr) > 10 : Fs = DateFormatH; + if len(Datestr) > 16 : Fs = DateFormatHms; + elif len(Datestr) > 13 : Fs = DateFormatHm; + elif len(Datestr) > 10 : Fs = DateFormatH; return mktime(strptime(Datestr, Fs)) def DateToText(Seconds): diff --git a/dklrt.el b/dklrt.el index cbe32b3..afc672c 100755 --- a/dklrt.el +++ b/dklrt.el @@ -70,7 +70,7 @@ transaction date." ; Hard-coded alternative value for debug only. (or dklrt-PackageDirectory - (setq dklrt-PackageDirectory "/opt/dk/emacs/dklrt-20131028.1025/")) + (setq dklrt-PackageDirectory "/opt/dk/emacs/dklrt-20131028.1129/")) ;;;###autoload (defun dklrt-SetCcKeys()