xbmc
Public Types | Public Member Functions | Public Attributes | List of all members
NPT_DateTime Class Reference

Public Types

enum  Format { FORMAT_ANSI, FORMAT_W3C, FORMAT_RFC_1123, FORMAT_RFC_1036 }
 
enum  FormatFlags { FLAG_EMIT_FRACTION = 1, FLAG_EXTENDED_PRECISION = 2 }
 

Public Member Functions

NPT_Int32 GetLocalTimeZone ()
 
 NPT_DateTime (const NPT_TimeStamp &timestamp, bool local=false)
 
NPT_Result ChangeTimeZone (NPT_Int32 timezone)
 
NPT_Result FromTimeStamp (const NPT_TimeStamp &timestamp, bool local=false)
 
NPT_Result ToTimeStamp (NPT_TimeStamp &timestamp) const
 
NPT_Result FromString (const char *date, Format format=FORMAT_ANSI)
 
NPT_String ToString (Format format=FORMAT_ANSI, NPT_Flags flags=0) const
 

Public Attributes

NPT_Int32 m_Year
 
NPT_Int32 m_Month
 
NPT_Int32 m_Day
 
NPT_Int32 m_Hours
 
NPT_Int32 m_Minutes
 
NPT_Int32 m_Seconds
 
NPT_Int32 m_NanoSeconds
 
NPT_Int32 m_TimeZone
 

The documentation for this class was generated from the following files: