Test Ar-PHP Functionality Online
Test PHP Function
Sub Class:
- Select one -
AutoSummarize
CharsetD
CompressStr
Date
Gender
Glyphs
Hiero
Identifier
KeySwap
Mktime
Normalise
Numbers
Query
Salat
Sort
Soundex
Standard
Stemmer
StrToTime
Transliteration
WordTag
Method:
- Select one -
setMode
getMode
date
en2ar
arabicMonths
hjConvert
jdToIslamic
islamicToJd
gregToJd
dateCorrection
time:
Result (
var_dump
output):
Ar-PHP Manual
method dateCorrection
[line
534
]
integer dateCorrection( integer $time)
Calculate Hijri calendar correction using Um-Al-Qura calendar information
Tags:
return:
Correction factor to fix Hijri calendar calculation using Um-Al-Qura calendar information
author:
Khaled Al-Sham'aa <
khaled@ar-php.org
>
access:
public
Parameters:
integer
$time
Unix timestamp
Example
date_default_timezone_set
(
'UTC'
)
;
$time
= time
(
)
;
echo date
(
'l dS F Y h:i:s A'
,
$time
)
;
echo
'<br /><br />'
;
include
(
'./I18N/Arabic.php'
)
;
$obj
=
new
I18N_Arabic
(
'Date'
)
;
echo
$obj
->
date
(
'l dS F Y h:i:s A'
,
$time
)
;
echo
'<br /><br />'
;
$obj
->
setMode
(
2
)
;
echo
$obj
->
date
(
'l dS F Y h:i:s A'
,
$time
)
;
echo
'<br /><br />'
;
$obj
->
setMode
(
3
)
;
echo
$obj
->
date
(
'l dS F Y h:i:s A'
,
$time
)
;
echo
'<br /><br />'
;
$obj
->
setMode
(
4
)
;
echo
$obj
->
date
(
'l dS F Y h:i:s A'
,
$time
)
;
Popular
utf8Glyphs
(1178)
ar2en
(962)
money2str
(550)
en2ar
(394)
isFemale
(291)
Recent
money2str
(5 days)
str2graph
(5 days)
en2ar
(5 days)
utf8Glyphs
(9 days)
highlightText
(21 days)
Links
Homepage
Download
Bug Report
Feature Request
My Blog
My Twitter
Ads!
Home
|
Twitter
|
Blog
|
Contact
Copyright © 2006 - 2016 Khaled Al-Sham'aa