Convert from/to struct_time

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Florian Lindner

    #1

    Convert from/to struct_time

    Hello,
    I have a struct_time and a datetime object and need compare them. Is there
    any function that converts either of these two to another?

    Thanks,

    Florian
  • Diez B. Roggisch

    #2
    Re: Convert from/to struct_time

    Florian Lindner schrieb:
    Hello,
    I have a struct_time and a datetime object and need compare them. Is there
    any function that converts either of these two to another?

    datetime.dateti me(*time.localt ime()[:6])

    Diez

    Comment

    Working...