I have a list of POSIX timestamps such as 1331567982
that I process using datetime.utcfromtimestamp
which gives me a date format like: year - month - day - hour - minute - seconds
.
However, for resampling purposes I just need to extract the timestamp up to the minute precision, that is year - month - day - hour - minute
, but no seconds.
How can I do that using functions from the datetime
module only (no Pandas)?
Aucun commentaire:
Enregistrer un commentaire