DateTime
Unit functions
You're viewing an older version of this page (#125). View the current version.
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.
Members of DateTime
CLASS MEMBER
year
Integer representation of the year
This function's source code is only visible to registered users — documentation and the calculator above are free to use either way. Sign in to see it.
CLASS MEMBER
month
Integer representation of the month (1 - 12)
This function's source code is only visible to registered users — documentation and the calculator above are free to use either way. Sign in to see it.
CLASS MEMBER
day
The day of the month (1 - 31)
This function's source code is only visible to registered users — documentation and the calculator above are free to use either way. Sign in to see it.
CLASS MEMBER
hour
The hour of the day (0 - 23)
This function's source code is only visible to registered users — documentation and the calculator above are free to use either way. Sign in to see it.
CLASS MEMBER
min
The minutes of the hour (0 - 59)
This function's source code is only visible to registered users — documentation and the calculator above are free to use either way. Sign in to see it.
CLASS MEMBER
sec
The seconds of the minute (0 - 59)
This function's source code is only visible to registered users — documentation and the calculator above are free to use either way. Sign in to see it.
CLASS MEMBER
dayOfWeek
Integer representation of the day of the week. (0 for Sunday through to 6 for Saturday)
This function's source code is only visible to registered users — documentation and the calculator above are free to use either way. Sign in to see it.
CLASS MEMBER
timestamp
Serial Julian date
This function's source code is only visible to registered users — documentation and the calculator above are free to use either way. Sign in to see it.