Table Of Contents

Previous topic

TipWindow

Next topic

ToggleButton

This Page

phoenix_title Tm

Contains broken down date-time representation.

This struct is analogous to standard C struct tm and uses the same, not always immediately obvious, conventions for its members: notably its mon and mday fields count from 0 while yday counts from 1.


class_hierarchy Inheritance Diagram

Inheritance diagram for class Tm

Inheritance diagram of Tm


method_summary Methods Summary

GetWeekDay Return the week day corresponding to this date.
IsValid Check if the given date/time is valid (in Gregorian calendar).

property_summary Properties Summary

WeekDay See GetWeekDay

api Class API



class Tm(object)

Contains broken down date-time representation.


Methods



GetWeekDay(self)

Return the week day corresponding to this date.

Unlike the other fields, the week day is not always available and so must be accessed using this method as it is computed on demand when it is called.

Return type:DateTime.WeekDay


IsValid(self)

Check if the given date/time is valid (in Gregorian calendar).

Return False if the components don’t correspond to a correct date.

Return type:bool

Properties



WeekDay

See GetWeekDay