Method | Description | |
---|---|---|
checkdate ( int month, int day, int year ) : bool |
Returns TRUE if the date given is valid; otherwise returns FALSE. Checks the validity of the date formed by the arguments. A date is considered valid if: |
|
date ( |
Returns a string formatted according to the given format string using the current local time.
|
|
date ( |
Returns a string formatted according to the given format string using the given integer timestamp.
|
|
date_sunrise ( |
||
date_sunrise ( |
||
date_sunrise ( |
||
date_sunrise ( |
||
date_sunrise ( |
||
date_sunrise ( |
||
date_sunset ( |
||
date_sunset ( |
||
date_sunset ( |
||
date_sunset ( |
||
date_sunset ( |
||
date_sunset ( |
||
getdate ( |
Returns an associative array containing the date information of the current local time.
|
|
getdate ( |
Returns an associative array containing the date information of the timestamp.
|
|
gettimeofday ( |
Gets time information. It returns PhpArray containing the following 4 entries: |
|
gettimeofday ( |
||
gmdate ( string format ) : string |
Identical to the date() function except that the time returned is Greenwich Mean Time (GMT)
|
|
gmdate ( string format, int timestamp ) : string |
Identical to the date() function except that the time returned is Greenwich Mean Time (GMT)
|
|
idate ( |
Returns a part of current time.
|
|
idate ( |
Returns a part of a specified timestamp.
|
|
localtime ( |
The localtime() function returns an array identical to that of the structure returned by the C function call. Current time is used, regular numericaly indexed array is returned.
|
|
localtime ( |
The localtime() function returns an array identical to that of the structure returned by the C function call. Time specified by the parameter timestamp is used, regular numericaly indexed array is returned.
|
|
localtime ( |
The localtime() function returns an array identical to that of the structure returned by the C function call. The first argument to localtime() is the timestamp. The second argument to the localtime() is the isAssociative, if this is set to Returned array contains these elements if isAssociative is set to true: |
|
microtime ( bool returnDouble ) : |
Returns the fractional time in seconds from the start of the UNIX epoch.
|
|
microtime ( ) : string |
Returns the string "msec sec" where sec is the current time measured in the number of seconds since the Unix Epoch (0:00:00 January 1, 1970 GMT), and msec is the microseconds part.
|
|
strtotime ( string time ) : int |
Parses a string containing an English date format into a UNIX timestamp relative to the current time.
|
|
strtotime ( string time, int start ) : int |
Parses a string containing an English date format into a UNIX timestamp relative to a specified time.
|
|
time ( ) : int |
Returns the current time measured in the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT).
|
Method | Description | |
---|---|---|
CalculateSunTime ( int day, double latitude, double longitude, double zenith, bool getSunrise ) : double |
Calculates sunrise or sunset. Adopted PHP implementation by Moshe Doron ([email protected]). Returns UTC time.
|
|
FormatDate ( string format, System.DateTime utc, |
||
GetDate ( |
Returns an associative array containing the date information.
|
|
GetDatePart ( char format, System.DateTime utc, |
||
GetDayNumberSuffix ( int DayNumber ) : string |
English ordinal suffix for the day of the month, 2 characters - st, nd, rd or th.
|
|
GetIsoWeekAndYear ( System.DateTime dt, int &week, int &year ) : void |
Converts a given DateTime to the ISO week of year number and ISO year number.
|
|
GetLocalTime ( |
||
GetNow ( |
Gets the current local time with respect to the current PHP time zone.
|
|
GetSunTime ( |
||
GetSwatchBeat ( System.DateTime utc ) : int | ||
GetTimeOfDay ( System.DateTime utc, |
||
MakeDateTime ( int hour, int minute, int second, int month, int day, int year ) : System.DateTime | ||
StringToTime ( string time, System.DateTime startUtc ) : int |
Implementation of StringToTime(string,int) function.
|
|
ToDegrees ( double radians ) : double | ||
ToRadians ( double degrees ) : double |
public static checkdate ( int month, int day, int year ) : bool | ||
month | int | Month |
day | int | Day |
year | int | Year |
return | bool |
public static date ( |
||
ctx | Current runtime context. | |
format | string | Format definition for output. |
return | string |
public static date ( |
||
ctx | Current runtime context. | |
format | string | Format definition for output. |
timestamp | int | Nuber of seconds since 1970 specifying a date. |
return | string |
public static date_sunrise ( |
||
ctx | ||
timestamp | int | |
return |
public static date_sunrise ( |
||
ctx | ||
timestamp | int | |
format | TimeFormats | |
return |
public static date_sunrise ( |
||
ctx | ||
timestamp | int | |
format | TimeFormats | |
latitude | double | |
return |
public static date_sunrise ( |
||
ctx | ||
timestamp | int | |
format | TimeFormats | |
latitude | double | |
longitude | double | |
return |
public static date_sunrise ( |
||
ctx | ||
timestamp | int | |
format | TimeFormats | |
latitude | double | |
longitude | double | |
zenith | double | |
return |
public static date_sunrise ( |
||
ctx | ||
timestamp | int | |
format | TimeFormats | |
latitude | double | |
longitude | double | |
zenith | double | |
offset | double | |
return |
public static date_sunset ( |
||
ctx | ||
timestamp | int | |
return |
public static date_sunset ( |
||
ctx | ||
timestamp | int | |
format | TimeFormats | |
return |
public static date_sunset ( |
||
ctx | ||
timestamp | int | |
format | TimeFormats | |
latitude | double | |
return |
public static date_sunset ( |
||
ctx | ||
timestamp | int | |
format | TimeFormats | |
latitude | double | |
longitude | double | |
return |
public static date_sunset ( |
||
ctx | ||
timestamp | int | |
format | TimeFormats | |
latitude | double | |
longitude | double | |
zenith | double | |
return |
public static date_sunset ( |
||
ctx | ||
timestamp | int | |
format | TimeFormats | |
latitude | double | |
longitude | double | |
zenith | double | |
offset | double | |
return |
public static getdate ( |
||
ctx | ||
return |
public static getdate ( |
||
ctx | Current runtime context. | |
timestamp | int | Number of seconds since 1970. |
return |
public static gettimeofday ( |
||
ctx | ||
return |
public static gettimeofday ( |
||
ctx | ||
returnDouble | bool | |
return | object |
public static gmdate ( string format ) : string | ||
format | string | Format definition for output. |
return | string |
public static gmdate ( string format, int timestamp ) : string | ||
format | string | Format definition for output. |
timestamp | int | Nuber of seconds since 1970 specifying a date. |
return | string |
public static idate ( |
||
ctx | Current runtime context. | |
format | string | Format definition for output. |
return | int |
public static idate ( |
||
ctx | Current runtime context. | |
format | string | Format definition for output. |
timestamp | int | Nuber of seconds since 1970 specifying a date. |
return | int |
public static localtime ( |
||
ctx | ||
return |
public static localtime ( |
||
ctx | Current runtime context. | |
timestamp | int | Number of seconds since 1970. |
return |
public static localtime ( |
||
ctx | Current runtime context. | |
timestamp | int | |
returnAssociative | bool | |
return |
public static microtime ( bool returnDouble ) : |
||
returnDouble | bool | |
return |
public static strtotime ( string time ) : int | ||
time | string | String containing time definition |
return | int |
public static strtotime ( string time, int start ) : int | ||
time | string | String containing time definition. |
start | int | Timestamp (seconds from 1970) to which is the new timestamp counted. |
return | int |