Geo-Location-TimeZoneFinder
view release on metacpan or search on metacpan
shapereader/dbf.h view on Meta::CPAN
/**
* Record
*/
typedef struct dbf_record_t {
char *bytes; /* Raw data of length record_size */
} dbf_record_t;
/**
* Convert a Julian date into a tm structure
*
* Calculates the calendar date from a Julian date and the time since
* midnight.
*
* The tm_isdst member of the tm structure is always set to -1.
*
* @param jd days since 1 January -4712.
* @param jt milliseconds since midnight.
* @param[out] tm the converted date.
*
* @see "Astronomical Algorithms" @cite Astronomical_Algorithms, p. 63 for a
* description of the algorithm.
*/
extern void dbf_jd_to_tm(int32_t jd, int32_t jt, struct tm *tm);
/**
* Converts a date string in the format "YYYYMMDD" into a tm structure
*
* Fills a tm structure with the day, month and year from a date string.
*
* The tm_wday member is only valid after 15 October 1582 in the Gregorian
* calendar.
*
* The tm_isdst member is always set to -1.
*
* @param ymd a date string in the format "YYYYMMDD".
* @param n the string length
* @param[out] tm the converted date.
* @return true on success, otherwise false.
*/
extern int dbf_yyyymmdd_to_tm(const char *ymd, size_t n, struct tm *tm);
shapereader/dbf.h view on Meta::CPAN
const dbf_field_t *field, const char **pbytes,
size_t *len);
/**
* Get a date
*
* Fills a tm structure with the day, month and year from a date in the
* format "YYYYMMDD".
*
* The tm_wday member is only valid after 15 October 1582 in the Gregorian
* calendar.
*
* The tm_isdst member is always set to -1.
*
* @memberof dbf_record_t
* @param record a record.
* @param field a field in the record.
* @param[out] tm a tm structure.
* @return true on success, otherwise false.
*/
extern int dbf_record_date(const dbf_record_t *record,
( run in 0.555 second using v1.01-cache-2.11-cpan-5dc5da66d9d )