.
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-11-21 22:09By setting the format using
xhtml you can do much more.
Thursday November 21st 2024 10:09:18 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 Thursday the 21st of November and the time is 10:09 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 (964)
c=full (2024-11-21T22:09:18+00:00)
D= day of week (Thu)
d=day of month (21)
e=timezone (GMT)
F=name of month (November)
g=hour (10) (12 hr no leading 0)
h=hour (10) (12hr leading 0)
G=hour (22) (24hr no leading 0)
H=hour (22) (24hr leading 0)
i=minutes (09)
I=daylight saving (0) (1=yes 0=no)
j=day of month (21) (no leading 0)
l= day of week (Thursday)
L=leapyear (1=yes 0=no)
M=name of month (Nov)
m=month (11) (leading 0)
n=month (11) (no leading 0)
N=day (1=mon 7=sun) (4)
w=day (sun=0 sat=6) (4)
r=full (Thu, 21 Nov 2024 22:09:18 +0000)
S=type of date (1st 2nd 3rd 4th) (st)
s=seconds (18)
T= timezone abbrv (GMT)
t=days in month (30)
U=seconds since 1/1/1970 (1732226958)
W=week number (47)
y=year (24)
Y=year (2024)
z=days (0=jan 1) (325)
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