Date#
- class ansys.stk.core.stkutil.Date#
Object that contains a date.
Overview#
Return the value of the date given the unit. |
|
Set this date with the given date value and unit type. |
|
Add the value in the given unit and returns a new date interface. |
|
Subtracts the value in the given unit and returns a new date interface. |
|
Subtracts the value from the Date interface and returns an Quantity. |
Get or set the current time in OLE DATE Format. |
|
Get or set the Julian Day Number of the date of interest. |
|
Contains values between 0.0 and 86400 with the exception of when the date is inside a leap second in which case the SecIntoDay can become as large as 86401.0. |
|
Get or set the UTC Day Number of the date of interest. |
|
Contains values between 0.0 and 86400 with the exception of when the date is inside a leap second in which case the SecIntoDay can become as large as 86401.0. |
Import detail#
from ansys.stk.core.stkutil import Date
Property detail#
- property Date.ole_date: datetime#
Get or set the current time in OLE DATE Format.
Method detail#
- Date.set_date(self, unit: str, value: str) None #
Set this date with the given date value and unit type.
- Date.add(self, unit: str, value: float) Date #
Add the value in the given unit and returns a new date interface.