com
.
xiaomi
.
duckling
.
dimension
.
time
.
helper
TimeObjectHelpers
Related Doc:
package helper
object
TimeObjectHelpers
Linear Supertypes
AnyRef
,
Any
Ordering
Alphabetic
By Inheritance
Inherited
TimeObjectHelpers
AnyRef
Any
Hide All
Show All
Visibility
Public
All
Value Members
final
def
!=
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
final
def
##
()
:
Int
Definition Classes
AnyRef → Any
final
def
==
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
add
(
dateTime:
DuckDateTime
,
grain:
Grain
,
n:
Int
)
:
DuckDateTime
final
def
asInstanceOf
[
T0
]
:
T0
Definition Classes
Any
def
clone
()
:
AnyRef
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
eq
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
def
equals
(
arg0:
Any
)
:
Boolean
Definition Classes
AnyRef → Any
def
finalize
()
:
Unit
Attributes
protected[
java.lang
]
Definition Classes
AnyRef
Annotations
@throws
(
classOf[java.lang.Throwable]
)
final
def
getClass
()
:
Class
[_]
Definition Classes
AnyRef → Any
def
hashCode
()
:
Int
Definition Classes
AnyRef → Any
final
def
isInstanceOf
[
T0
]
:
Boolean
Definition Classes
Any
final
def
ne
(
arg0:
AnyRef
)
:
Boolean
Definition Classes
AnyRef
final
def
notify
()
:
Unit
Definition Classes
AnyRef
final
def
notifyAll
()
:
Unit
Definition Classes
AnyRef
final
def
synchronized
[
T0
]
(
arg0: ⇒
T0
)
:
T0
Definition Classes
AnyRef
def
timeBefore
(
t1:
TimeObject
,
t2:
TimeObject
,
grain:
Grain
=
NoGrain
)
:
Boolean
Annotations
@tailrec
()
def
timeEnd
(
t:
TimeObject
)
:
DuckDateTime
Annotations
@inline
()
def
timeIntersect
(
t1:
TimeObject
)
(
t2:
TimeObject
)
:
Option
[
TimeObject
]
时间求交,比如将 date 部分和 time 部分合并,注意,需要先让历法一致
时间求交,比如将 date 部分和 time 部分合并,注意,需要先让历法一致
Annotations
@tailrec
()
def
timeInterval
(
intervalType:
IntervalType
,
to1:
TimeObject
,
to2:
TimeObject
)
:
TimeObject
def
timePlus
(
t:
TimeObject
,
theGrain:
Grain
,
n:
Int
)
:
TimeObject
def
timeRound
(
t:
TimeObject
,
grain:
Grain
)
:
TimeObject
def
timeSequence
(
grain:
Grain
,
step:
Int
,
anchor:
TimeObject
)
: (
Stream
[
TimeObject
],
Stream
[
TimeObject
])
def
timeStart
(
t:
TimeObject
)
:
DuckDateTime
Annotations
@inline
()
def
timeStartsBeforeTheEndOf
(
t1:
TimeObject
)
(
t2:
TimeObject
)
:
Boolean
def
timeValue
(
t:
TimeObject
)
:
SingleTimeValue
def
timeWith
(
t:
TimeObject
,
theGrain:
Grain
,
n:
Int
)
:
TimeObject
def
toSolar
(
t:
ZonedDateTime
,
isLeapMonth:
Boolean
)
:
ZonedDateTime
def
toString
()
:
String
Definition Classes
AnyRef → Any
final
def
wait
()
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
,
arg1:
Int
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
final
def
wait
(
arg0:
Long
)
:
Unit
Definition Classes
AnyRef
Annotations
@throws
(
...
)
def
with
(
dateTime:
DuckDateTime
,
grain:
Grain
,
n:
Int
)
:
DuckDateTime
闰月时,不可用累加数出月份来
Inherited from
AnyRef
Inherited from
Any
Ungrouped