[PHP]echo jdate('format'); [/PHP]
خوب حالا به جاي format از دستورات زير مي تونيد استفاده کنيد.
کد:
A
am = قبل ازظهر
pm = بعدازظهر
-----------------
a
am = ق.ظ
pm = ب.ظ
-----------------
D
Sat = ش
...
-----------------
d
day = 01 to 31
-----------------
F
month = فروردين
...
-----------------
g
hour = 1 through 12
-----------------
G
hour = 0 through 23
-----------------
h
hour = 01 through 12
-----------------
H
hour = 00 through 23
-----------------
i
minutes = 00 to 59
-----------------
j
day = 1 to 31
-----------------
l
Saturday = شنبه
...
-----------------
m
month = 01 through 12
-----------------
M
month = فروردين
...
-----------------
n
month = 1 through 12
-----------------
s
Seconds = 00 through 59
-----------------
S
result = ام
-----------------
t
number of days in month = 29 through 31
-----------------
w
week = 0 (for Sunday) through 6 (for Saturday)
-----------------
y
year = 87
-----------------
Y
year = 1387
اينم يه مثال:
[PHP]<?php
include('jdate.php');
echo jdate('l, j F Y'); // يكشنبه, 17 شهريور 1387
?>[/PHP]
اينم براي php کارا
[PHP]
include('jdate.php');
echo jdate('l, j F Y', "1220702187"); //شنبه, 16 شهريور 1387 [/PHP]