Ticket #437 (new enhancement)
SMS timestamp format
|Reported by:||ohin||Owned by:||mickey|
I find the timestamp format a little unhandy. I am talking about this: 'Wed May 20 13:40:23 2009'. When you want to work with the timestamp further (i.e. sort messages by the timestamp), it is not very practical.
What would you say to have in file ogsmd/gsm/sms.py instead of
map["timestamp"] = self.scts.ctime() + " %+05i" % (self.scts*100)
map["timestamp"] = str(self.scts) + " %+05i" % (self.scts*100)
From Python v2.6 documentation: str(d) is equivalent to d.isoformat(' '). The returned value is (easy to parse): 2009-05-13 09:02:30