|
| 12 Aug 2011 04:00 PM |
Google is not my friend.
-[Insert witty comment here] |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2011 04:03 PM |
I don't know about JavaScript but you can use PHP :P
date_default_timezone_set('America/Los_Angeles'); |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 12 Aug 2011 04:04 PM |
I don't think PHP is much use for a supposedly light-weight chrome extension.
-[Insert witty comment here] |
|
|
| Report Abuse |
|
|
LocalChum
|
  |
| Joined: 04 Mar 2011 |
| Total Posts: 6906 |
|
| |
|
|
| 12 Aug 2011 04:06 PM |
Think about what I'm gonna do on my computer when I get home all day
Forget when I get on my computer |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2011 04:07 PM |
@Arceus
I always do that... D: |
|
|
| Report Abuse |
|
|
Person299
|
  |
| Joined: 28 Feb 2008 |
| Total Posts: 7952 |
|
| |
|
|
| 12 Aug 2011 04:10 PM |
var date = new Date(); var localtime = date.getTime(); var timeoffset = data.getTimezoneOffset() * 60000; var basetime = localtime + timeoffset var PDTtime = basetime + (3600000*-7); |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2011 04:11 PM |
@Arceus
owned localchum is on my side
trolololo |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2011 04:26 PM |
@Pie
But what if someone is in a different time zone to that? How j00 get it to work without overkill-maths?
-[Insert witty comment here] |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2011 04:28 PM |
@ Mega
It should always return the PDT time no matter what time zone you're in. |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2011 04:40 PM |
@Pie
Ok, so would the PDTTime thing represent milliseconds since 1970?
-[Insert witty comment here] |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2011 04:44 PM |
Add this to the end and you get the PDT date time:
time = new Date(PDTtime)
|
|
|
| Report Abuse |
|
|
|
| 12 Aug 2011 04:52 PM |
Oh, thanks. :D
-[Insert witty comment here] |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2011 04:55 PM |
| Is this going to be used in your siggy extension? |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2011 05:05 PM |
"Your" I modified it, but thank you.
I was actually going to make an entirely new extension which gives you roblox time.
-[Insert witty comment here] |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2011 05:06 PM |
If I like to this in a background html document, it should work right?
function updateTime() { var Time = new Date() var localtime = Time.getTime(); var timeoffset = Time.getTimezoneOffset() * 60000; var basetime = localtime + timeoffset var PDTtime = basetime + (3600000*-7);
PDTCurrentTime = new Date(PDTtime) var h = PDTCurrentTime.getHours() var m = PDTCurrentTime.getMinutes() var s = PDTCurrentTime.getSeconds() var formattedTimed = h + m chrome.browserAction.setBadgeText({text:formattedTime}) }
while (5 == 5) { var t=setTimeout("updateTime()", 1000) }
-[Insert witty comment here] |
|
|
| Report Abuse |
|
|
|
| 12 Aug 2011 05:07 PM |
| Maybe. I don't know JavaScript. |
|
|
| Report Abuse |
|
|