time

time:bigger_or_equal?

Return TRUE if $time1 (arg1) is bigger than or equal to $time2 (arg2) considering their timezone and everything


time:bigger?

Return TRUE if $time1 (arg1) is bigger than $time2 (arg2) considering their timezone


time:equal?

Return TRUE if $time1 (arg1) is equal to $time2 (arg2) considering their timezone


time:diff_in_seconds

Return the difference between $time1 - $time2 in seconds


time:diff

Return the difference between two times using an array of Hour, Minutes, etc


time:modify

Add given date interval to given time string


time:get_current_month_remaining_days

Get the remaining days in the current month excluding the current day


time:get_current_month_number_of_days

Get the total number of days in the current month


time:to_utc

Convert timezone to UTC


time:convert_timezone

Change the timezone of given timestring


time:format

Format given time


time:format_clock

Get time/clock from a given time string


time:sql

Format a date to work with MySQL date, datetime, time and timestamp data types


time:year

Get year e.g. 2030 from the given time string


time:end_of_day

Get todays end of day datetime


time:start_of_day

Get todays end of day datetime


time:format_us

Format time in U.S. format


time:get_start_end_date_of_a_week


time:format_unix

Get Unix time (epoch)


time:format_unix_day

PRIVATE Get current epoch day (unix_time / number_of_seconds_in_one_day) then rounded down


time:get_all_possible_timezones

Return all possible timezones in an array


time:get_timezone

Get timezone of given $time string. Default is UTC if no timezone is indicated in $time string


time:now

Return current timestring in given timezone (default: UTC)


time:is_valid?

Return TRUE if given time string is valid, false otherwise


time:create

Parse about any English textual datetime description into a time string or return false on failure


time:timestamp_to_date

Change a timestamp to a date


time:seconds_to_days_hours_and_minutes

Transform seconds into an array of days, hours, minutes, etc


time:words_to_seconds

Transfrom english words like "10 days" into seconds


time:seconds_to_words

Transform seconds into english words (days, hours, etc)


time:diff_in_words

Explain the difference of ($time1 - $time2) in english words


time:format_relative_short

Return a short english descrition of given time compared to now


time:format_relative

Return english description of given time relative to now


time:milliseconds_to_english


Copyright © SunSed LLC 2013-2022 All rights reserved.