Unit functions

You're viewing an older version of this page (#125). View the current version.

View versions (1)

Interface

#include <codecogs/units/date/datetime.h>

using namespace Units::Date;

Overview

This structure is a container for the date and time, which is passed into DateString. Also see date_str.

GPL Licence — free for non commercial use. See Licence details.

Members of DateTime

CLASS MEMBER

year

Integer representation of the year

CLASS MEMBER

month

Integer representation of the month (1 - 12)

CLASS MEMBER

day

The day of the month (1 - 31)

CLASS MEMBER

hour

The hour of the day (0 - 23)

CLASS MEMBER

min

The minutes of the hour (0 - 59)

CLASS MEMBER

sec

The seconds of the minute (0 - 59)

CLASS MEMBER

dayOfWeek

Integer representation of the day of the week. (0 for Sunday through to 6 for Saturday)

CLASS MEMBER

timestamp

Serial Julian date