class Cronic::TimeUtil
- Cronic::TimeUtil
- Reference
- Object
Defined in:
cronic/time.crConstant Summary
-
HOUR_SECONDS =
3600
-
MINUTE_SECONDS =
60
-
SECOND_SECONDS =
1
-
SUBSECOND_SECONDS =
0.001
Class Method Summary
-
.add_days(time : Time, num : Int32)
add days, with adjustment for timezone offset and daylight savings time when incrementing
-
.could_be_hour?(hour, width = nil, hours12 = false)
Checks if given number could be hour
-
.could_be_minute?(minute, width = nil)
Checks if given number could be minute
-
.could_be_second?(second, width = nil)
Checks if given number could be second
-
.could_be_subsecond?(subsecond, width = nil)
Checks if given number could be subsecond
-
.normalize_offset(offset)
normalize offset in seconds to offset as string +mm:ss or -mm:ss
Class Method Detail
add days, with adjustment for timezone offset and daylight savings time when incrementing
Checks if given number could be hour
def self.normalize_offset(offset)
#
normalize offset in seconds to offset as string +mm:ss or -mm:ss