The Official Star Trek Movie Forum

The Official Star Trek Movie Forum > Star Trek > Comments & Suggestions > The time now is...
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #11  
Old 06-13-2008, 06:48 PM
Quark's Avatar
Quark Quark is offline
Rear Admiral
 
Join Date: Jan 2008
Location: Santa Monica, California
Posts: 2,657
Default

Quote:
Originally Posted by Deusdies View Post
Here are some:

Code:
<script type="text/javascript">
<!--
 
function updateClock ( )
{
  var currentTime = new Date ( );
 
  var currentHours = currentTime.getHours ( );
  var currentMinutes = currentTime.getMinutes ( );
  var currentSeconds = currentTime.getSeconds ( );
 
  // Pad the minutes and seconds with leading zeros, if required
  currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
  currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;
 
  // Choose either "AM" or "PM" as appropriate
  var timeOfDay = ( currentHours < 12 ) ? "AM" : "PM";
 
  // Convert the hours component to 12-hour format if needed
  currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
 
  // Convert an hours component of "0" to "12"
  currentHours = ( currentHours == 0 ) ? 12 : currentHours;
 
  // Compose the string for display
  var currentTimeString = currentHours + ":" + currentMinutes + ":" + currentSeconds + " " + timeOfDay;
 
  // Update the time display
  document.getElementById("clock").firstChild.nodeValue = currentTimeString;
}
 
// -->
</script>
You will have to edit footer in your vBulletin template. Styles > Edit Template > Footer.

Now this is also necessary:

Code:
<body onload="updateClock(); setInterval('updateClock()', 1000 )">
Add this in header template. Beware not to rewrite whole <body> tag; there might be something put by vBulletin.

Of course, you will have to add custom CSS classes to clock JavaScript. You don't want it to be plain xD

*faints
__________________
*The word "dabo" means "I will give" in Latin, and "Gold" in Aramaic.

J.J. "Binks" Abrams is taking over sci-fi!
Fans Expendable
Reply With Quote
  #12  
Old 06-13-2008, 10:29 PM
Gunny1's Avatar
Gunny1 Gunny1 is offline
Lieutenant Commander
 
Join Date: Mar 2008
Posts: 831
Default

Quote:
Originally Posted by Quark View Post
*faints
"All times are GMT -8. The time now is 10:02 PM."
__________________
XI COUNTDOWN CLOCK:

Reply With Quote
  #13  
Old 06-13-2008, 10:48 PM
Oregon_Coast_Trekkie's Avatar
Oregon_Coast_Trekkie Oregon_Coast_Trekkie is offline
Commander
 
Join Date: Jan 2008
Posts: 1,271
Default

I've got 11:48 pm.
Reply With Quote
  #14  
Old 06-14-2008, 04:24 AM
DNA-1842's Avatar
DNA-1842 DNA-1842 is offline
Vice Admiral
 
Join Date: Feb 2008
Location: Aberdeen, Scotland, Europe, Terra - ZZ9 PluralZAlpha
Posts: 3,594
Default

The clock on my thing says ''All times are GMT+1'', and subsequently gives roughly the right time. But I happen to know that I operate ON Greenwich Mean Time! (Living almost on the Prime Meridian itself!!!)
__________________
Gronda Gronda to all Zarking Hoopy Froods! Bowties are cool.
I Am A Friend Of


(And an indirectly founding patron of the Elizadolots Avatar Thingy.)
Reply With Quote
  #15  
Old 06-14-2008, 06:19 AM
Quark's Avatar
Quark Quark is offline
Rear Admiral
 
Join Date: Jan 2008
Location: Santa Monica, California
Posts: 2,657
Default

I have GMT -7
__________________
*The word "dabo" means "I will give" in Latin, and "Gold" in Aramaic.

J.J. "Binks" Abrams is taking over sci-fi!
Fans Expendable
Reply With Quote
  #16  
Old 06-14-2008, 12:12 PM
MissionTrek08's Avatar
MissionTrek08 MissionTrek08 is offline
Fleet Admiral
 
Join Date: Jan 2008
Location: Southern California
Posts: 5,562
Default

Quote:
Originally Posted by DNA-1842 View Post
The clock on my thing says ''All times are GMT+1'', and subsequently gives roughly the right time. But I happen to know that I operate ON Greenwich Mean Time! (Living almost on the Prime Meridian itself!!!)
You can change your setting re: GMT to correct it, the control is in your User CP.
__________________

MISSION:TREK's in-depth review of STAR TREK


Proud member of the Friends of Zardoz Association. Avatar courtesy of Eliza's House of Avatars with three convenient locations near you. Free balloons for the kids!
Reply With Quote
  #17  
Old 06-14-2008, 08:56 PM
Elizadolots's Avatar
Elizadolots Elizadolots is offline
Admiral
 
Join Date: Feb 2008
Posts: 4,466
Default

What I want to know is why anyone actually looks at that? I didn't even know it was there until I saw this thread...when I want to know the time I look at the little clock in the lower right corner of my monitor which is getting its time off my cable provider and seems very accurate.
__________________


Thanks to Ron Salon for the signature banner!
Reply With Quote
  #18  
Old 06-15-2008, 02:42 AM
DNA-1842's Avatar
DNA-1842 DNA-1842 is offline
Vice Admiral
 
Join Date: Feb 2008
Location: Aberdeen, Scotland, Europe, Terra - ZZ9 PluralZAlpha
Posts: 3,594
Default

Quote:
Originally Posted by MissionTrek08 View Post
You can change your setting re: GMT to correct it, the control is in your User CP.
But it is giving the correct time! I doubt that the computer will believe me if I try to tell it that it is giving me the right time, but it thinks that it is somewhere else!
__________________
Gronda Gronda to all Zarking Hoopy Froods! Bowties are cool.
I Am A Friend Of


(And an indirectly founding patron of the Elizadolots Avatar Thingy.)
Reply With Quote
  #19  
Old 06-15-2008, 07:03 AM
Quark's Avatar
Quark Quark is offline
Rear Admiral
 
Join Date: Jan 2008
Location: Santa Monica, California
Posts: 2,657
Default

Quote:
Originally Posted by Elizadolots View Post
What I want to know is why anyone actually looks at that? I didn't even know it was there until I saw this thread...when I want to know the time I look at the little clock in the lower right corner of my monitor which is getting its time off my cable provider and seems very accurate.
True, same here. The only reason I brought this up was due to curiosity. In addition, I don't know why it would be there if it only works when you refresh the page.
__________________
*The word "dabo" means "I will give" in Latin, and "Gold" in Aramaic.

J.J. "Binks" Abrams is taking over sci-fi!
Fans Expendable
Reply With Quote
  #20  
Old 06-15-2008, 09:58 AM
Elizadolots's Avatar
Elizadolots Elizadolots is offline
Admiral
 
Join Date: Feb 2008
Posts: 4,466
Default

My guess is it's there to help us if we discover our posts seem to have the wrong time.

"...oh, look, the board clock doesn't match my computer clock! I guess I need to change my settings."
__________________


Thanks to Ron Salon for the signature banner!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:01 AM.


Forum theme courtesy of Mark Lambert
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright © 2009 by Paramount Pictures. STAR TREK and all related
marks and logos are trademarks of CBS Studios Inc. All Rights Reserved.