timeDiff

Show time different in array format

Arguments
Name Type Description Required
target_time int | string your chosen time for compare with base_time, could be timestamp or could be a string like `next sunday` yes
base_time int | string | null base time, could be timestamp or could be a string like `next sunday`, set null for current time(default is null) no

Output : array

Static or normal : Static

Examples :

tools::time2string(1636913656);
tools::time2string(1636913656, 1636923656);