date
Module0x40fc…5bb2
- Move path
- 0xed6c…9f32::date
- Functions
- 3939 public, 0 entry
- Structs
- 0
- Friend modules
- None
date
Functions39
- public fun add_days(u64, u64): u64
- public fun add_hours(u64, u64): u64
- public fun add_minutes(u64, u64): u64
- public fun add_months(u64, u64): u64
- public fun add_seconds(u64, u64): u64
- public fun add_years(u64, u64): u64
- public fun days_from_date(u64,u64,u64): u64
- public fun days_to_date(u64): (u64, u64, u64)
- public fun diff_days(u64, u64): u64
- public fun diff_hours(u64, u64): u64
- public fun diff_minutes(u64, u64): u64
- public fun diff_months(u64, u64): u64
- public fun diff_seconds(u64, u64): u64
- public fun diff_years(u64, u64): u64
- public fun get_day(u64): u64
- public fun get_day_of_week(u64): u64
- public fun get_days_in_timestamp_month(u64): u64
- public fun get_days_in_year_month(u64, u64): u64
- public fun get_hour(u64): u64
- public fun get_minute(u64): u64
- public fun get_month(u64): u64
- public fun get_second(u64): u64
- public fun get_year(u64): u64
- public fun is_timestamp_leap_year(u64): bool
- public fun is_valid_date(u64,u64,u64): bool
- public fun is_valid_date_time(u64,u64,u64,u64,u64,u64): bool
- public fun is_weekday(u64): bool
- public fun is_weekend(u64): bool
- public fun is_year_leap_year(u64): bool
- public fun sub_days(u64, u64): u64
Structs0
This module defines no structs
Constants15
Constants are shown the way the code loads them. Bytecode does not keep their names.
| Index | Value | Type | Use | Used in |
|---|---|---|---|---|
| 0 | 86400 | u64 | Value | timestamp_from_datetimestamp_from_date_timetimestamp_to_datetimestamp_to_date_timeand 16 more |
| 1 | 3600 | u64 | Value | timestamp_from_date_timetimestamp_to_date_timeget_hourget_minuteand 3 more |
| 2 | 60 | u64 | Value | timestamp_from_date_timetimestamp_to_date_timeget_minuteget_secondand 3 more |
| 3 | 2440588 | u64 | Value | days_from_datedays_to_date |
| 4 | 1 | u64 | Value | |
| 5 | 2 | u64 | Value | |
| 6 | 3 | u64 | Value | |
| 7 | 4 | u64 | Value | |
| 8 | 5 | u64 | Value | is_weekday |
| 9 | 6 | u64 | Value | is_weekend |
| 10 | 7 | u64 | Value | |
| 11 | 65536 | u64 | Abort code | days_from_date |
| 12 | 720897 | u64 | Abort code | add_yearsadd_months |
| 13 | 720898 | u64 | Abort code | sub_yearssub_months |
| 14 | 720899 | u64 | Abort code | diff_yearsdiff_monthsdiff_daysdiff_hoursand 2 more |