Module: OpenHAB::CoreExt::Java::TemporalAmount
Overview
Extensions to javajava.timejava.time.temporaljava.time.temporal.TemporalAmount
Instance Method Summary collapse
- #-@ ⇒ TemporalAmount
-
#ago ⇒ ZonedDateTime
Subtract ‘self` to ZonedDateTime.now.
-
#from_now ⇒ ZonedDateTime
Add ‘self` to ZonedDateTime.now.
- #inspect ⇒ String
Instance Method Details
#-@ ⇒ TemporalAmount
23 24 25 |
# File 'lib/openhab/core_ext/java/temporal_amount.rb', line 23 def -@ negated end |
#ago ⇒ ZonedDateTime
Subtract ‘self` to ZonedDateTime.now
12 13 14 |
# File 'lib/openhab/core_ext/java/temporal_amount.rb', line 12 def ago ZonedDateTime.now - self end |
#from_now ⇒ ZonedDateTime
Add ‘self` to ZonedDateTime.now
18 19 20 |
# File 'lib/openhab/core_ext/java/temporal_amount.rb', line 18 def from_now ZonedDateTime.now + self end |
#inspect ⇒ String
28 29 30 |
# File 'lib/openhab/core_ext/java/temporal_amount.rb', line 28 def inspect to_s end |