.
do not copy code using translator

*
xtgem
Twitter blog Facebook
TUTORIAL
TIME AND DATEThere are MANY time and date settings that are not avalable from the XTgem building tool but they CAN be set in xhtml.
The most you can set from the building tool time and date XTfunction is this.
[XT: Time and date (Y-m-d H:i)]2024-03-19 10:24By setting the format using
xhtml you can do much more.
Tuesday March 19th 2024 10:24:49 amAlmost anything not a letter can be used as spacers.
letters can be "escaped" using \
Except \n and \t ( They are the newline and tab text formatters )
n and t must be entered as
n and t
Today is Tuesday the 19th of March and the time is 10:24 am GMTHere is a list of the format string options with what they produce.
LIST OF FORMAT OPTIONS
A=AM/PM (AM)
a=am/pm (am)
B=Swatch internet time (475)
c=full (2024-03-19T10:24:49+00:00)
D= day of week (Tue)
d=day of month (19)
e=timezone (GMT)
F=name of month (March)
g=hour (10) (12 hr no leading 0)
h=hour (10) (12hr leading 0)
G=hour (10) (24hr no leading 0)
H=hour (10) (24hr leading 0)
i=minutes (24)
I=daylight saving (0) (1=yes 0=no)
j=day of month (19) (no leading 0)
l= day of week (Tuesday)
L=leapyear (1=yes 0=no)
M=name of month (Mar)
m=month (03) (leading 0)
n=month (3) (no leading 0)
N=day (1=mon 7=sun) (2)
w=day (sun=0 sat=6) (2)
r=full (Tue, 19 Mar 2024 10:24:49 +0000)
S=type of date (1st 2nd 3rd 4th) (th)
s=seconds (49)
T= timezone abbrv (GMT)
t=days in month (31)
U=seconds since 1/1/1970 (1710843889)
W=week number (12)
y=year (24)
Y=year (2024)
z=days (0=jan 1) (78)
O= difference from GMT in hours (+0000)
P= same with a colon (+00:00)
u= Microseconds (000000)
tzoneTime zone is the difference in hours from GMT
It can be a positive or negative number between -14 and 12
You also can set for countries with 30 minute time zones (i.e india tzone="5.5")

back to Xt functions

Main Page
©2010 - 2024 Graham.yn.lt
X T B O A R D
X T G E M
© MMXXIV Graham