Back to FabImage Library website
You are here: Start » Function Reference » System » Time » MakeDateTime
Header: | STD.h |
---|---|
Namespace: | fil |
Module: | FoundationLite |
Returns a valid DateTime object completed with the input parameters.
Syntax
void fil::MakeDateTime ( int inYear, int inMonth, int inDayOfMonth, int inHour, int inMinutes, int inSeconds, fil::DateTime& outDateTime )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inYear | int | 1970 - ![]() |
Year | |
![]() |
inMonth | int | 1 - 12 | Month | |
![]() |
inDayOfMonth | int | 1 - 31 | Day of the month | |
![]() |
inHour | int | 0 - 23 | Hour | |
![]() |
inMinutes | int | 0 - 59 | Minutes | |
![]() |
inSeconds | int | 0 - 60 | Seconds | |
![]() |
outDateTime | DateTime& | Completed DateTime object |
Description
This filter can be used to create a DateTime object based on the provided date and time data. The DayOfWeek, DayOfYear, TimezoneOffset, DaylightSaving and UnixTime fields of outDateTime will be automatically filled with correct values.
Errors
List of possible exceptions:
Error type | Description |
---|---|
DomainError | Invalid input data given to MakeDateTime. |