Ticket #437 (new enhancement)

Opened 3 years ago

Last modified 2 years ago

SMS timestamp format

Reported by: ohin Owned by: mickey
Priority: major Milestone:
Component: framework/ogsmd Version:
Keywords: Cc:

Description

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[0].ctime() + " %+05i" % (self.scts[1]*100)
map["timestamp"] = str(self.scts[0]) + " %+05i" % (self.scts[1]*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

Change History

comment:1 Changed 3 years ago by dos

opimd already handles that and sends timestamp as seconds since Unix epoch, so I think it's unneccesary.

comment:2 Changed 2 years ago by sim

 decoration Changed 1 year ago by admin

 bathtub Changed 1 year ago by admin

 solar system Changed 1 year ago by admin

 stair parts Changed 1 year ago by admin

 solar supply Changed 1 year ago by admin

Note: See TracTickets for help on using tickets.