|
Foxit PDF SDK
|
Public Member Functions | |
| def | GetDay () |
| Get day of month. More... | |
| def | GetHour () |
| Get hour. More... | |
| def | GetMilliseconds () |
| Get millisecond. More... | |
| def | GetMinute () |
| Get minute. More... | |
| def | GetMonth () |
| Get month. More... | |
| def | GetSecond () |
| Get second. More... | |
| def | GetUtc_hour_offset () |
| Get hour of time zone. More... | |
| def | GetUtc_minute_offset () |
| Get minute of time zone. More... | |
| def | GetYear () |
| Get year. More... | |
| def | IsValid () |
| Check whether current object is valid or not. More... | |
| def | Set (year, month, day, hour, minute, second, milliseconds, utc_hour_offset, utc_minute_offset) |
| Set value. More... | |
| def | SetDay (value) |
| Set day of month. More... | |
| def | SetHour (value) |
| Set hour. More... | |
| def | SetMilliseconds (value) |
| Set millisecond. More... | |
| def | SetMinute (value) |
| Set minute. More... | |
| def | SetMonth (value) |
| Set month. More... | |
| def | SetSecond (value) |
| Set second. More... | |
| def | SetUtc_hour_offset (value) |
| Set hour of time zone. More... | |
| def | SetUtc_minute_offset (value) |
| Set minute of time zone. More... | |
| def | SetYear (value) |
| Set year. More... | |
| def | ToLocalTime () |
| Convert current object to local time. More... | |
| def | ToUTCTime () |
| Convert current object to UTC time. More... | |
This class represents date, time and timezone.
| fsdk.DateTime.GetDay | ( | ) |
Get day of month.
| fsdk.DateTime.GetHour | ( | ) |
Get hour.
| fsdk.DateTime.GetMilliseconds | ( | ) |
Get millisecond.
| fsdk.DateTime.GetMinute | ( | ) |
Get minute.
| fsdk.DateTime.GetMonth | ( | ) |
Get month.
| fsdk.DateTime.GetSecond | ( | ) |
Get second.
| fsdk.DateTime.GetUtc_hour_offset | ( | ) |
Get hour of time zone.
Positive value for the eastern time zone, and negative value for the western time zone.
| fsdk.DateTime.GetUtc_minute_offset | ( | ) |
Get minute of time zone.
| fsdk.DateTime.GetYear | ( | ) |
Get year.
| def fsdk.DateTime.IsValid | ( | ) |
Check whether current object is valid or not.
When the current object is not valid, that means current object is useless.
| def fsdk.DateTime.Set | ( | year, | |
| month, | |||
| day, | |||
| hour, | |||
| minute, | |||
| second, | |||
| milliseconds, | |||
| utc_hour_offset, | |||
| utc_minute_offset | |||
| ) |
Set value.
| [in] | year | Year. It should be a four-digit number, such as 2014. |
| [in] | month | Month. Valid range: from 1 to 12. |
| [in] | day | Day of month. Valid range: from 1 to 31. |
| [in] | hour | Hour. Valid range: from 0 to 23. |
| [in] | minute | Minute. Valid range: from 0 to 59. |
| [in] | second | Second. Valid range: from 0 to 60. 60 for leap second. |
| [in] | milliseconds | Millisecond. Valid range: from 0 to 999. PDF standard does not support now, this can be omitted if it is not applicable. |
| [in] | utc_hour_offset | Hour of time zone. Valid range: from -12 to 12. Positive value for the eastern time zone, and negative value for the western time zone. |
| [in] | utc_minute_offset | Minute of time zone. Valid range: from 0 to 59. |
| fsdk.DateTime.SetDay | ( | value | ) |
Set day of month.
| [in] | value | Day of month. Valid range: from 1 to 31. |
| fsdk.DateTime.SetHour | ( | value | ) |
Set hour.
| [in] | value | Hour. Valid range: from 0 to 23. |
| fsdk.DateTime.SetMilliseconds | ( | value | ) |
Set millisecond.
| [in] | value | Millisecond. Valid range: from 0 to 999. PDF standard does not support now, this can be omitted if it is not applicable. |
| fsdk.DateTime.SetMinute | ( | value | ) |
Set minute.
| [in] | value | Minute. Valid range: from 0 to 59. |
| fsdk.DateTime.SetMonth | ( | value | ) |
Set month.
| [in] | value | Month. Valid range: from 1 to 12. |
| fsdk.DateTime.SetSecond | ( | value | ) |
Set second.
| [in] | value | Second. Valid range: from 0 to 60. 60 for leap second. |
| fsdk.DateTime.SetUtc_hour_offset | ( | value | ) |
Set hour of time zone.
Positive value for the eastern time zone, and negative value for the western time zone.
| [in] | value | Hour of time zone. Valid range: from -12 to 12. |
| fsdk.DateTime.SetUtc_minute_offset | ( | value | ) |
Set minute of time zone.
| [in] | value | Minute of time zone. Valid range: from 0 to 59. |
| fsdk.DateTime.SetYear | ( | value | ) |
Set year.
| [in] | value | Year. It should be a four-digit number, such as 2014. |
| def fsdk.DateTime.ToLocalTime | ( | ) |
Convert current object to local time.
| def fsdk.DateTime.ToUTCTime | ( | ) |
Convert current object to UTC time.