X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=monitor%2Fcommon.py;h=ae32156c6653fa685515166f6a4d065ce451d95c;hb=fbe2fbd7f5d866205f878e68968dcef14a3812ab;hp=5cf815109aa667301e99dfff765615d80272ba63;hpb=f4f26439ae2db33f8f9a55e1a3350f6ed4f78278;p=monitor.git diff --git a/monitor/common.py b/monitor/common.py index 5cf8151..ae32156 100644 --- a/monitor/common.py +++ b/monitor/common.py @@ -283,13 +283,13 @@ def found_within(recent_actions, action_type, within): return False -class Time: - @classmethod - def dt_to_ts(cls, dt): - t = time.mktime(dt.timetuple()) - return t - - @classmethod - def ts_to_dt(cls, ts): - d = datetime.fromtimestamp(ts) - return d +#class Time: +# @classmethod +# def dt_to_ts(cls, dt): +# t = time.mktime(dt.timetuple()) +# return t +# +# @classmethod +# def ts_to_dt(cls, ts): +# d = datetime.fromtimestamp(ts) +# return d