| AND OR | string words | *

information

|

date and time

| see demonstration of date and time


more date and time examples



full source of date and time [ line 1 - 22 ] | download date and time

1    <?php
2     echo date("D M d, Y H:i:s");
3   ?>
4    reads like: Fri Jan 03, 2003 12:01:21
5    where
6    Y = Year eg. 2003 
7    y = Year eg. 03 
8    M = Month eg. Jan 
9    m = Month eg. 01 
10    D = Day eg. Fri 
11    d = Day eg. 03 
12    z = Day of the year eg. 002 
13    H = Hours in 24 hour format eg. 07 
14    h = Hours in 12 hour format eg. 7 
15    i = Minutes eg. 29 
16    s = Seconds eg. 28 
17    U = Seconds since epoch eg. 1041604168
18   if you want some letters in the output, which are NOT to parse, escape them with a backslash like
19   <?php
20     echo date("D M d, Y H hou\rs i mi\nu\tes s seco\nds");
21   ?>
22    reads like: Fri Jan 03, 2003 12 hours 01 minutes 21 seconds
23   



38 hits by 13 users in the last 30 minutes.