|
Foxit PDF SDK
|
Public 成员函数 | |
| DateTime () | |
| 构造函数。 | |
| DateTime (DateTime dt) | |
| 带另一个日期时间对象的构造函数。 更多... | |
| DateTime (int year, int month, int day, int hour, int minute, int second, int milliseconds, short utc_hour_offset, int utc_minute_offset) | |
| 带参数的构造函数。 更多... | |
| synchronized void | delete () |
| 直接清除C++相关资源。 更多... | |
| int | getDay () |
| Get 月份中的日期。有效范围:从1到31。 更多... | |
| int | getHour () |
| Get 小时。有效范围:从0到23。 更多... | |
| int | getMilliseconds () |
| Get 毫秒。有效范围:从0到999。PDF标准目前不支持,如果不适用可以省略。 更多... | |
| int | getMinute () |
| Get 分钟。有效范围:从0到59。 更多... | |
| int | getMonth () |
| Get 月份。有效范围:从1到12。 更多... | |
| int | getSecond () |
| Get 秒。有效范围:从0到60。60表示闰秒。 更多... | |
| short | getUtc_hour_offset () |
| Get 时区小时。有效范围:从-12到12。 更多... | |
| int | getUtc_minute_offset () |
| Get 时区分钟。有效范围:从0到59。 更多... | |
| int | getYear () |
| Get 年份。应该是四位数字,如2014。 更多... | |
| boolean | isValid () |
| 检查当前对象是否有效。 更多... | |
| void | set (int year, int month, int day, int hour, int minute, int second, int milliseconds, short utc_hour_offset, int utc_minute_offset) |
| 设置值。 更多... | |
| void | setDay (int value) |
| Set 月份中的日期。有效范围:从1到31。 更多... | |
| void | setHour (int value) |
| Set 小时。有效范围:从0到23。 更多... | |
| void | setMilliseconds (int value) |
| Set 毫秒。有效范围:从0到999。PDF标准目前不支持,如果不适用可以省略。 更多... | |
| void | setMinute (int value) |
| Set 分钟。有效范围:从0到59。 更多... | |
| void | setMonth (int value) |
| Set 月份。有效范围:从1到12。 更多... | |
| void | setSecond (int value) |
| Set 秒。有效范围:从0到60。60表示闰秒。 更多... | |
| void | setUtc_hour_offset (short value) |
| Set 时区小时。有效范围:从-12到12。 更多... | |
| void | setUtc_minute_offset (int value) |
| Set 时区分钟。有效范围:从0到59。 更多... | |
| void | setYear (int value) |
| Set 年份。应该是四位数字,如2014。 更多... | |
| DateTime | toLocalTime () |
| 将当前对象转换为本地时间。 更多... | |
| DateTime | toUTCTime () |
| 将当前对象转换为UTC时间。 更多... | |
静态 Public 成员函数 | |
| static DateTime | getLocalTime () |
| 获取本地时间。 更多... | |
| static DateTime | getUTCTime () |
| 获取 UTC 时间。 更多... | |
此类表示日期、时间和时区。
| com.foxit.sdk.common.DateTime.DateTime | ( | int | year, |
| int | month, | ||
| int | day, | ||
| int | hour, | ||
| int | minute, | ||
| int | second, | ||
| int | milliseconds, | ||
| short | utc_hour_offset, | ||
| int | utc_minute_offset | ||
| ) |
带参数的构造函数。
| [in] | year | 年份。应为四位数字,例如 2014。 |
| [in] | month | 月份。有效范围:从 1 到 12。 |
| [in] | day | 月份中的日期。有效范围:从 1 到 31。 |
| [in] | hour | 小时。有效范围:从 0 到 23。 |
| [in] | minute | 分钟。有效范围:从 0 到 59。 |
| [in] | second | 秒。有效范围:从 0 到 60。60 表示闰秒。 |
| [in] | milliseconds | 毫秒。有效范围:从 0 到 999。 PDF 标准目前不支持,如果不适用可以省略。 |
| [in] | utc_hour_offset | 时区小时。有效范围:从 -12 到 12。 正值表示东时区,负值表示西时区。 |
| [in] | utc_minute_offset | 时区分钟。有效范围:从 0 到 59。 |
| com.foxit.sdk.common.DateTime.DateTime | ( | DateTime | dt | ) |
带另一个日期时间对象的构造函数。
| [in] | dt | 另一个日期时间对象。 |
| synchronized void com.foxit.sdk.common.DateTime.delete | ( | ) |
直接清除C++相关资源。
| com.foxit.sdk.common.DateTime.getDay | ( | ) |
Get 月份中的日期。有效范围:从1到31。
| com.foxit.sdk.common.DateTime.getHour | ( | ) |
Get 小时。有效范围:从0到23。
|
static |
获取本地时间。
| com.foxit.sdk.common.DateTime.getMilliseconds | ( | ) |
Get 毫秒。有效范围:从0到999。PDF标准目前不支持,如果不适用可以省略。
| com.foxit.sdk.common.DateTime.getMinute | ( | ) |
Get 分钟。有效范围:从0到59。
| com.foxit.sdk.common.DateTime.getMonth | ( | ) |
Get 月份。有效范围:从1到12。
| com.foxit.sdk.common.DateTime.getSecond | ( | ) |
Get 秒。有效范围:从0到60。60表示闰秒。
| com.foxit.sdk.common.DateTime.getUtc_hour_offset | ( | ) |
Get 时区小时。有效范围:从-12到12。
正值表示东时区,负值表示西时区。
| com.foxit.sdk.common.DateTime.getUtc_minute_offset | ( | ) |
Get 时区分钟。有效范围:从0到59。
|
static |
获取 UTC 时间。
| com.foxit.sdk.common.DateTime.getYear | ( | ) |
Get 年份。应该是四位数字,如2014。
| boolean com.foxit.sdk.common.DateTime.isValid | ( | ) |
检查当前对象是否有效。
当当前对象无效时,意味着当前对象无用。
| void com.foxit.sdk.common.DateTime.set | ( | int | year, |
| int | month, | ||
| int | day, | ||
| int | hour, | ||
| int | minute, | ||
| int | second, | ||
| int | milliseconds, | ||
| short | utc_hour_offset, | ||
| int | utc_minute_offset | ||
| ) |
设置值。
| [in] | year | 年份。应为四位数字,例如 2014。 |
| [in] | month | 月份。有效范围:从 1 到 12。 |
| [in] | day | 月份中的日期。有效范围:从 1 到 31。 |
| [in] | hour | 小时。有效范围:从 0 到 23。 |
| [in] | minute | 分钟。有效范围:从 0 到 59。 |
| [in] | second | 秒。有效范围:从 0 到 60。60 表示闰秒。 |
| [in] | milliseconds | 毫秒。有效范围:从 0 到 999。 PDF 标准目前不支持,如果不适用可以省略。 |
| [in] | utc_hour_offset | 时区小时。有效范围:从 -12 到 12。 正值表示东时区,负值表示西时区。 |
| [in] | utc_minute_offset | 时区分钟。有效范围:从 0 到 59。 |
| com.foxit.sdk.common.DateTime.setDay | ( | int | value | ) |
Set 月份中的日期。有效范围:从1到31。
| [in] | value | 月份中的日期。有效范围:从1到31。 |
| com.foxit.sdk.common.DateTime.setHour | ( | int | value | ) |
Set 小时。有效范围:从0到23。
| [in] | value | 小时。有效范围:从0到23。 |
| com.foxit.sdk.common.DateTime.setMilliseconds | ( | int | value | ) |
Set 毫秒。有效范围:从0到999。PDF标准目前不支持,如果不适用可以省略。
| [in] | value | 毫秒。有效范围:从0到999。PDF标准目前不支持,如果不适用可以省略。 |
| com.foxit.sdk.common.DateTime.setMinute | ( | int | value | ) |
Set 分钟。有效范围:从0到59。
| [in] | value | 分钟。有效范围:从0到59。 |
| com.foxit.sdk.common.DateTime.setMonth | ( | int | value | ) |
Set 月份。有效范围:从1到12。
| [in] | value | 月份。有效范围:从1到12。 |
| com.foxit.sdk.common.DateTime.setSecond | ( | int | value | ) |
Set 秒。有效范围:从0到60。60表示闰秒。
| [in] | value | 秒。有效范围:从0到60。60表示闰秒。 |
| com.foxit.sdk.common.DateTime.setUtc_hour_offset | ( | short | value | ) |
Set 时区小时。有效范围:从-12到12。
正值表示东时区,负值表示西时区。
| [in] | value | 时区小时。有效范围:从-12到12。 |
| com.foxit.sdk.common.DateTime.setUtc_minute_offset | ( | int | value | ) |
Set 时区分钟。有效范围:从0到59。
| [in] | value | 时区分钟。有效范围:从0到59。 |
| com.foxit.sdk.common.DateTime.setYear | ( | int | value | ) |
Set 年份。应该是四位数字,如2014。
| [in] | value | 年份。应该是四位数字,如2014。 |
| DateTime com.foxit.sdk.common.DateTime.toLocalTime | ( | ) |
将当前对象转换为本地时间。
| DateTime com.foxit.sdk.common.DateTime.toUTCTime | ( | ) |
将当前对象转换为UTC时间。