.
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)]2020-07-04 21:34By setting the format using
xhtml you can do much more.
Saturday July 4th 2020 9:34:39 pmAlmost 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 Saturday the 4th of July and the time is 9:34 pm GMTHere is a list of the format string options with what they produce.
LIST OF FORMAT OPTIONS
A=AM/PM (PM)
a=am/pm (pm)
B=Swatch internet time (940)
c=full (2020-07-04T21:34:39+00:00)
D= day of week (Sat)
d=day of month (04)
e=timezone (GMT)
F=name of month (July)
g=hour (9) (12 hr no leading 0)
h=hour (09) (12hr leading 0)
G=hour (21) (24hr no leading 0)
H=hour (21) (24hr leading 0)
i=minutes (34)
I=daylight saving (0) (1=yes 0=no)
j=day of month (4) (no leading 0)
l= day of week (Saturday)
L=leapyear (1=yes 0=no)
M=name of month (Jul)
m=month (07) (leading 0)
n=month (7) (no leading 0)
N=day (1=mon 7=sun) (6)
w=day (sun=0 sat=6) (6)
r=full (Sat, 04 Jul 2020 21:34:39 +0000)
S=type of date (1st 2nd 3rd 4th) (th)
s=seconds (39)
T= timezone abbrv (GMT)
t=days in month (31)
U=seconds since 1/1/1970 (1593898479)
W=week number (27)
y=year (20)
Y=year (2020)
z=days (0=jan 1) (185)
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 - 2020 Graham.yn.lt
X T B O A R D
X T G E M
© MMXX Graham