TimingLibrary
in package
Timing Library Class
Table of Contents
- formatDaysTime() : string
- Format time on days format
- formatExtendedDate() : string
- Format time based on system default extended date config
- formatHoursMinutesLeft() : string
- Get the amount of hours and minutes left
- formatShortDate() : string
- Format time based on system default short date config
- getDaysLeft() : float
- Get the amount of days left
- setOnlineStatus() : string
- Return an string with the online time formatted
Methods
formatDaysTime()
Format time on days format
public
static formatDaysTime(string $time) : string
Parameters
- $time : string
-
Time
Return values
string —formatExtendedDate()
Format time based on system default extended date config
public
static formatExtendedDate(string $time) : string
Parameters
- $time : string
-
Time
Return values
string —formatHoursMinutesLeft()
Get the amount of hours and minutes left
public
static formatHoursMinutesLeft(int $time) : string
Parameters
- $time : int
Return values
string —formatShortDate()
Format time based on system default short date config
public
static formatShortDate(string $time) : string
Parameters
- $time : string
-
Time
Return values
string —getDaysLeft()
Get the amount of days left
public
static getDaysLeft(int $time) : float
Parameters
- $time : int
Return values
float —setOnlineStatus()
Return an string with the online time formatted
public
static setOnlineStatus(int $online_time) : string
Parameters
- $online_time : int
-
Online Time