Functions31 public, 2 private
| Creates an iCal event object. | |||
| public | string | iCalendarCreateEvent | |
| required | date | begins | |
| any | ends | ||
| struct | optional | {} | |
| public | any | changeTimeOfDate | |
| required | any | date | |
| required | any | time | |
| Converts the provided date from the specified timezone [srcTimezone] to the desired timezone [dstTimezone]. | |||
| public | date | convertFromTimeZone | |
| required | date | datetime | |
| java.util.TimeZone.getTimeZone() | |||
| required | string | srcTimezone | |
| java.util.TimeZone.getTimeZone() | |||
| required | string | dstTimezone | |
| Wrapper for the native createDateTime() to handle a DST related bug in ACF. | |||
| public | date | createDateTime | |
| required | numeric | year | |
| required | numeric | month | |
| required | numeric | day | |
| numeric | hour | 0 | |
| numeric | minute | 0 | |
| numeric | second | 0 | |
| Formats the date difference between the provided dates using the specified mask. | |||
| public | any | dateDiffFormat | |
| required | date | dateStart | |
| required | date | dateEnd | |
| "DE", "EN" | language | EN | |
| Returns the date for the provided UNIX timestamp. The timestamp is the number of seconds since 1st January 1970. Timezone is UTC. | |||
| public | any | fromUnixTimestamp | |
| UNIX timestamp to convert. | |||
| required | numeric | timestamp | |
| Convert from UTC to the current timezone. | |||
| boolean | convert | true | |
| Returns the age by comparing the provided date with the current date. | |||
| public | numeric | getAge | |
| required | any | date | |
| date | now | now() | |
| public | date | getClosestWeekday | |
| required | date | date | |
| required | "SU", "MO", "TU", "WE", "TH", "FR", "SA" | weekday | |
| Returns the first day of the week (Monday) for the specified date. | |||
| public | any | getFirstDayOfWeek | |
| any | date | now() | |
| Returns the last day of the week (Sunday) for the specified date. | |||
| public | any | getLastDayOfWeek | |
| any | date | now() | |
| Returns the roughly time difference between the provided timestamps and returns a localized expression. | |||
| public | string | getRelativeTimeDifference | |
| required | any | ts1 | |
| required | any | ts2 | |
| string | language | EN | |
| Returns the roughly time difference between the provided timestamps and returns a localized expression. | |||
| public | string | getTimeAgo | |
| required | any | ts1 | |
| any | ts2 | now() | |
| string | language | EN | |
| Returns the roughly time difference between the provided timestamps and returns a localized expression. | |||
| public | string | getTimeAhead | |
| required | any | ts1 | |
| any | ts2 | now() | |
| string | language | EN | |
| Returns the TimeZone information for the specified point in time. | |||
| public | struct | getTimeZoneInfo | |
| required | date | date | |
| Returns if the provided date lies between the specified dates. | |||
| public | boolean | isBetweenDates | |
| required | any | date | |
| required | any | beginDate | |
| required | any | endDate | |
| Merges two dates to combine its date and time parts. The merging DOES NOT add date or time. | |||
| public | any | mergeDateAndTime | |
| Date part. | |||
| required | any | date | |
| Time part. | |||
| required | any | time | |
| string | country | ||
| Attempts to parse the provided value as date. | |||
| public | any | parseDate | |
| required | any | value | |
| string | country | ||
| struct | OPTIONS | {} | |
| option | "date", "verbose" | returnType | date |
| Parses and merges two date literals to combine its date and time parts. | |||
| public | any | parseDateAndTime | |
| Date part. | |||
| required | any | date | |
| Time part. | |||
| required | any | time | |
| string | country | ||
| public | any | parseDateTime | |
| required | string | value | |
| Attempts to parse the provided value as time. | |||
| public | any | parseTime | |
| required | any | value | |
| public | any | parseTimeSpan | |
| required | any | value | |
| numeric | default | ||
| Returns the time difference between the provided times in milliseconds. | |||
| public | numeric | timeDiff | |
| required | date | time1 | |
| required | date | time2 | |
| Converts the specified timespan double to the total number of milliseconds. | |||
| public | numeric | timespanToMilliseconds | |
| required | numeric | timespan | |
| Converts the specified timespan double to the total number of seconds. | |||
| public | numeric | timespanToSeconds | |
| required | numeric | timespan | |
| Converts the specified timespan double to the total number of minutes. | |||
| public | numeric | timespanToMinutes | |
| required | numeric | timespan | |
| Converts the specified timespan double to the total number of hours. | |||
| public | numeric | timespanToHours | |
| required | numeric | timespan | |
| Converts the specified timespan double to the total number of days. | |||
| public | numeric | timespanToDays | |
| required | numeric | timespan | |
| public | string | toJavaScriptDate | |
| The date to convert. | |||
| date | date | now() | |
| Convert to UTC based on the current timezone before stringify. | |||
| boolean | convert | true | |
| Returns the UNIX timestamp of the specified date. The timestamp equals the number of seconds since 1st January 1970. | |||
| public | numeric | toUnixTimestamp | |
| The date to convert. | |||
| date | date | now() | |
| Convert to UTC based on the current timezone before timestamp calculation. | |||
| boolean | convert | true | |
| Converts the provided date to UTC based on the current timezone. | |||
| public | any | toUTC | |
| date | date | now() | |
| Translates the specified number of days to a more convenient expression using weeks, months and years. The translation takes only place if the specified number is dividable with a remainder of zero. 7 days = week 30 days = month 365 days = year | |||
| public | string | translateDays | |
| required | numeric | days | |
| string | language | EN | |