Quote:
Originally Posted by Chompy
Uhm? In the first example HR used in that thread it shows you how to get a date/timestamp :o
|
Not using a single function, it doesn't.
Quote:
Originally Posted by xXziroXx
It's not rocket science to make a function for it yourself using HR's code as source.
|
PHP Code:
function hellRavenFormalTime() {
temp.ctime = adjustTimeZone(timevar2,-5); // to EST
temp.date = getDate(temp.ctime);
temp.clock = {getHour(temp.ctime),getMinutes(temp.ctime),getSeconds(temp.ctime)};
return getFormalDayEnglish(getWeekday(temp.ctime)) @ ", " @
getFormalMonthEnglish(temp.date[1]) SPC getFormalNumber(temp.date[2]) @ ", " @ temp.date[0] @ " @ " @
to12Hour(temp.clock[0]) @ ":" @ doubleDigit(temp.clock[1]) @ ":" @ doubleDigit(temp.clock[2]) SPC getAMPM(temp.clock[0]) SPC "EST";
}
PHP Code:
function timestamp() {
return shared.date("l, F jS, @ g:i:s a T");
}
Which one do you think somebody new to GS2 would be able to use more easily? You guys seem to think that every scripter on Graal is an expert.