Pebble Foundation Classes  0.2.0
C++ for Pebble
Pebble::DateTime Class Reference
Collaboration diagram for Pebble::DateTime:

Public Member Functions

 DateTime (time_t timestamp)
 
 DateTime (const tm &tm)
 
 DateTime (int year, int month, int day)
 
 DateTime (int year, int month, int day, int hour, int minute, int second)
 
 operator const ::tm * () const
 
int GetDay () const
 
int GetMonth () const
 
int GetYear () const
 
int GetHour () const
 
int GetMinute () const
 
int GetSecond () const
 
DayOfWeek GetDayOfWeek () const
 
time_t GetTimestamp () const
 
DateTime AddYears (int years) const
 
DateTime AddMonths (int months) const
 
DateTime AddDays (int days) const
 
DateTime AddHours (int hours) const
 
DateTime AddMinutes (int minutes) const
 
DateTime AddSeconds (int seconds) const
 
size_t Format (char *s, size_t max, const char *fmt) const
 

Static Public Member Functions

static DateTime Now ()
 

Protected Member Functions

void Normalize ()
 

Protected Attributes

tm date_
 

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