Thread: getTimeStamp()
View Single Post
  #21  
Old 11-07-2008, 06:21 PM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
Quote:
Originally Posted by Chompy View Post
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 View Post
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.
__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote