time.h File Reference


Detailed Description

Time related conversion routines.

time_t is the POSIX time. min1900_t is the minutes from Jan 1, 1900

Definition in file time.h.

#include "dll.h"
#include <time.h>
#include <stdint.h>

Go to the source code of this file.

Namespaces

namespace  Barry

Classes

struct  Barry::TimeZone

Defines

#define DAY_MINUTES   (24 * 60)
#define YEAR_MINUTES   (365 * DAY_MINUTES)
#define LEAP_YEAR_COUNT   ((1970-1901) / 4)
#define YEAR_COUNT   (1970 - 1900)
#define STDC_MIN1900_DIFF   (YEAR_COUNT * YEAR_MINUTES + LEAP_YEAR_COUNT * DAY_MINUTES)
#define TIME_ZONE_CODE_ERR   0xffff

Typedefs

typedef long Barry::min1900_t

Functions

min1900_t Barry::time2min (time_t t)
time_t Barry::min2time (min1900_t m)
const TimeZone * Barry::GetTimeZoneTable ()
 Returns a pointer to an array of TimeZone structs.
const TimeZone * Barry::GetTimeZone (unsigned short Code)
 Searches the internal timezone code table for the given Code and returns a pointer to a TimeZone struct found.
unsigned short Barry::GetTimeZoneCode (signed short HourOffset, signed short MinOffset)
 Searches the internal timezone table for the first matching Code.
time_t Barry::DayToDate (unsigned short Day)
 This routine takes the day of the year and returns a time_t adjusted from the first of the year.
time_t Barry::Message2Time (uint16_t r_date, uint16_t r_time)
 Localize the funky math used to convert a Blackberry message timestamp into a time_t.


Generated on Wed Sep 24 21:27:32 2008 for Barry by  doxygen 1.5.1