Version: 2023.2
언어: 한국어

DiscreteTime

struct in Unity.IntegerTime

매뉴얼로 전환

설명

Data-type representing a discrete time value.

정적 변수

MaxValueThe maximum representable time.
MaxValueSecondsThe maximum representable time in seconds.
MinValueThe minimum representable time.
MinValueSecondsThe minimum representable time in seconds.
TickThe duration in seconds of a tick (the smallest representable unit of time).
ZeroThe zero value.

변수

ValueThe underlying discrete time value, which represents the number of discrete ticks.

생성자

DiscreteTimeConstructs a discrete time from either seconds (float/double) or ticks (int/long).

Public 함수

ToStringReturns a string representation of the time.

정적 함수

FromTicksExplicitly converts a tick value to a DiscreteTime value.

연산자

operator -Returns the substraction of two time values.
operator !=Returns whether two time values are different.
operator *Returns the multiplication of two time values.
operator /A time value divided by a floating point amount.
operator +Returns the addition of two time values.
operator <Returns whether the left-hand time value is less than the right-hand one.
operator ==Returns true if the time is equal to a given time, false otherwise.
operator >Returns whether left-hand time value is greater than the right-hand one.
RationalTimeConverts a DiscreteTime to a RationalTime representation. This conversion is always lossless.
Unknown operatorReturns whether the left-hand time value is less than or equal to the right-hand one.
Unknown operatorReturns whether the left-hand time value is greater than or equal to the right-hand one.
Unknown operatorReturns the modulus of two time values.