In the event that a datetime item has a tzinfo, at that point it knows. import datetime ().replace(tzinfoNone). Python datetime items can either be naive or mindful. Here's how to get the current UTC time and convert to the ISO-8601 format (which is what your example shows). ISO is the International Standards Organization, which in addition to other things, determines standard datetime designing. UTC is the coordinated universal time, and is fundamentally the equivalent as GMT. It is the standard ISO format for UTC datetime strings. tzinfo determines the timezone and UTC offset. Most datetime items came back from the dateutil parser are naive, which means they don’t have an explicit tzinfo.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |