Documentation

Calendar extends jCalendar
in package

Backward compatibility.

Table of Contents

$farsiDigits  : mixed
$format  : mixed
$jformat  : mixed
date()  : string
PHP::date() by Jalali result
getdate()  : array<string|int, mixed>
PHP::getdate() in Jalali result
getdate_timestamp()  : mixed
gregorian_to_jalali()  : mixed
Conversion methods
jalali_to_gregorian()  : mixed
jdate()  : mixed
Backward compatibility
mktime()  : int
PHP::mktime() by Jalali inputs
div()  : mixed
ReturnMonthName()  : mixed
Built-in methods
translateDigits()  : mixed

Properties

Methods

date()

PHP::date() by Jalali result

public date( $format[,  $stamp = null ][,  $GMT = null ]) : string
Parameters
$format :

string Standard PHP::date() format

$stamp : = null

int Unix Timestamp

$GMT : = null

int Difference to server time in seconds

Return values
string

Converted input

getdate()

PHP::getdate() in Jalali result

public getdate([ $timestamp = null ]) : array<string|int, mixed>
Parameters
$timestamp : = null

int Unix Timestamp

Return values
array<string|int, mixed>

Date data on standard getdate result array

getdate_timestamp()

public getdate_timestamp([mixed $timestamp = null ]) : mixed
Parameters
$timestamp : mixed = null
Return values
mixed

gregorian_to_jalali()

Conversion methods

public gregorian_to_jalali(mixed $g_y, mixed $g_m, mixed $g_d) : mixed
Parameters
$g_y : mixed
$g_m : mixed
$g_d : mixed
Return values
mixed

jalali_to_gregorian()

public jalali_to_gregorian(mixed $j_y, mixed $j_m, mixed $j_d) : mixed
Parameters
$j_y : mixed
$j_m : mixed
$j_d : mixed
Return values
mixed

jdate()

Backward compatibility

public jdate(mixed $format[, mixed $stamp = null ][, mixed $GMT = null ]) : mixed
Parameters
$format : mixed
$stamp : mixed = null
$GMT : mixed = null
Return values
mixed

mktime()

PHP::mktime() by Jalali inputs

public mktime([ $hour = null ][,  $minute = null ][,  $second = null ][,  $month = null ][,  $day = null ][,  $year = null ]) : int
Parameters
$hour : = null

int Standard hour

$minute : = null

int Standard minute

$second : = null

int Standard second

$month : = null

int Standard Jalali month

$day : = null

int Standard Jalali day number

$year : = null

int Standard Jalali year

Return values
int

Unix Timestamp (GREGORIAN)

div()

private div(mixed $a, mixed $b) : mixed
Parameters
$a : mixed
$b : mixed
Return values
mixed

ReturnMonthName()

Built-in methods

private ReturnMonthName(mixed $monname) : mixed
Parameters
$monname : mixed
Return values
mixed

translateDigits()

private translateDigits(mixed $str) : mixed
Parameters
$str : mixed
Return values
mixed

Search results