I am trying to solve a problem:
In the library code I have something like:
return format % (value.year, value.month, value.day, value.hour,
value.minute,value.second, value.microsecond)
where format is a string with formatting:
format = "%04d-%02d-%02d %02d:%02d:%02d.%06d"
For this format possible output can be:
2015-02-26 11:28:45.466000
I can only set up format (string format, maybe some function?), library code is untouchable. Is there any way to receive something like:
2015-02-26 11:28:45
string.split('.')[0]