Package ch.nolix.systemapi.time.moment
Schnittstelle ITime
- Alle Superschnittstellen:
IElement
- Alle bekannten Implementierungsklassen:
Time
A
ITime stores a time with a precision of 1 microsecond.- Version:
- 2022-05-28
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungintintintintintintintintgetYear()booleanbooleanbooleanlongwithAddedOrSubtractedDays(int days) withAddedOrSubtractedHours(int hours) withAddedOrSubtractedMicroseconds(long microseconds) withAddedOrSubtractedMilliseconds(int milliseconds) withAddedOrSubtractedMinutes(int minutes) withAddedOrSubtractedSeconds(int seconds) Von Schnittstelle geerbte Methoden ch.nolix.systemapi.element.base.IElement
getAttributes, getSpecification, toFormatedString, toXml
-
Methodendetails
-
getDayOfMonth
int getDayOfMonth()- Gibt zurück:
- the day of the month of the current
ITime.
-
getHourOfDay
int getHourOfDay()- Gibt zurück:
- the hour of the day of the current
ITime.
-
getMicrosecondOfMillisecond
int getMicrosecondOfMillisecond()- Gibt zurück:
- the microsecond of the millisecond of the current
ITime.
-
getMillisecondOfSecond
int getMillisecondOfSecond()- Gibt zurück:
- the millisecond of the second of the current
ITime.
-
getMinuteOfHour
int getMinuteOfHour()- Gibt zurück:
- the minute of the hour of the current
ITime.
-
getMonthOfYear
Month getMonthOfYear()- Gibt zurück:
- the month of the year of the current
ITime.
-
getMonthOfYearAsInt
int getMonthOfYearAsInt()- Gibt zurück:
- the month of the year of the current
ITimeas int.
-
getSecondOfMinute
int getSecondOfMinute()- Gibt zurück:
- the second of the minute of the current
ITime.
-
getWeekday
Weekday getWeekday()- Gibt zurück:
- the weekday of the current
ITime.
-
getYear
int getYear()- Gibt zurück:
- the year of the current
ITime.
-
isAfter
- Parameter:
time-- Gibt zurück:
- true if the current
ITimeis after the given time, false otherwise
-
isBefore
- Parameter:
time-- Gibt zurück:
- true if the current
ITimeis before the given time, false otherwise
-
isInLeapYear
boolean isInLeapYear()- Gibt zurück:
- true if the current
ITimeis in a leap year.
-
toSeconds
long toSeconds()- Gibt zurück:
- the seconds of the current
ITime.
-
withAddedOrSubtractedDays
-
withAddedOrSubtractedHours
-
withAddedOrSubtractedMicroseconds
-
withAddedOrSubtractedMilliseconds
-
withAddedOrSubtractedMinutes
-
withAddedOrSubtractedSeconds
-