首页 / base / oaSystemTime

oaSystemTime

模块: oapy._oa._base 导入: from oapy._oa import _base

概览

oaSystemTimeoapy 中可用,可通过 _base 模块访问。

本页汇总 oaSystemTime 当前在 oapy 中可用的 Python 接口。

详细说明

oaSystemTime is a utility class that implements a systemTime object。 systemTime is stored by year, month, day, hour, minute, and second。

构造函数

_base.oaSystemTime()

obj = _base.oaSystemTime()

方法总览

状态 Python 调用
obj.getCurrentTime()
obj.getYear()
obj.getMonth()
obj.getDay()
obj.getHour()
obj.getMinute()
obj.getSecond()

方法说明

obj.getCurrentTime()

绑定状态: 已绑定

Python 调用: obj.getCurrentTime()

This function loads the systemTime object with the current time。

Python 示例

from oapy._oa import _base

# assume obj is a oaSystemTime
obj.getCurrentTime()

obj.getYear()

绑定状态: 已绑定

Python 调用: obj.getYear()

This function returns the year portion of the current time。 The year is supplied AD (thus 1900 AD is returned as 1900 and not as 0)。

Python 示例

from oapy._oa import _base

# assume obj is a oaSystemTime
obj.getYear()

obj.getMonth()

绑定状态: 已绑定

Python 调用: obj.getMonth()

This function returns the month-of-year portion of the current time as a value between 1 and 12。

Python 示例

from oapy._oa import _base

# assume obj is a oaSystemTime
obj.getMonth()

obj.getDay()

绑定状态: 已绑定

Python 调用: obj.getDay()

This function returns the day-of-month portion of the current time as a value between 1 and 31。

Python 示例

from oapy._oa import _base

# assume obj is a oaSystemTime
obj.getDay()

obj.getHour()

绑定状态: 已绑定

Python 调用: obj.getHour()

This function returns the hour-of-day portion of the current time as a value between 0 and 23, specified as the number of hours past midnight。

Python 示例

from oapy._oa import _base

# assume obj is a oaSystemTime
obj.getHour()

obj.getMinute()

绑定状态: 已绑定

Python 调用: obj.getMinute()

This function returns the minute-of-hour portion of the current time as a value between 0 and 59。

Python 示例

from oapy._oa import _base

# assume obj is a oaSystemTime
obj.getMinute()

obj.getSecond()

绑定状态: 已绑定

Python 调用: obj.getSecond()

This function returns the seconds-of-minute portion of the current time normally as a value between 0 and 59 but allowing for 60 and 61 when leap seconds are present。

Python 示例

from oapy._oa import _base

# assume obj is a oaSystemTime
obj.getSecond()