I need to pass datetimes between an android client, a python server and a mysql server.
It should work the following:
- the android client sends the exact time from the client to the cherrypy python server (I guess the datetime object should be sent as a string?)
- the server has to parse this string into something useful to work with as a datetime object
Now there a two cases:
- the datetime object should be written into a mysql database (there is an attribute of type DATETIME in the related database table)
- the server should retrieve a datetime from the mysql database and compare it with the parsed datetime object
After some background processes finished their work with the python datetime objects as input parameters, a new datetime object should be passed back to the android client
Does anyone know some good solution for solving these problems?