Menu

#88 time.localtime() daylight savings flag support

open
nobody
None
3
2008-04-24
2008-04-08
No

According to the Python Library Reference release 2.2.2 the ninth tupel element of time.localtime() should contain a daylight savings flag. In PyS60 1.4.2 always -1 is returned and not 0 or 1.

Discussion

  • Himanshu Agarwal

    • status: open --> open-remind
     
  • Jukka Laurila

    Jukka Laurila - 2008-04-24

    Logged In: YES
    user_id=1162622
    Originator: NO

    The manual page of localtime defines the meaning of that flag as follows:

    "tm_isdst
    A flag that indicates whether daylight saving time is in effect at the time described. The value is positive if daylight saving time is in effect, zero if it is not, and negative if the information is not available."

    So, a compliant implementation of localtime is allowed to always return -1. This just means that the DST information isn't available at this time, using this call.

    This is thus a feature request, not a bug. Moving to feature requests.

     
  • Jukka Laurila

    Jukka Laurila - 2008-04-24
    • priority: 5 --> 3
    • summary: time.localtime() doesn't return daylight savings (DST) flag --> time.localtime() daylight savings flag support
    • status: open-remind --> open
     

Log in to post a comment.

Auth0 Logo