Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] [OT] Subtracting two times in JavaScript
- Date: Sun, 21 Mar 2010 13:54:45 +0900
- From: Dave M G <dave@example.com>
- Subject: Re: [tlug] [OT] Subtracting two times in JavaScript
- References: <4BA4D0BD.6030802@example.com> <4BA573B3.8010006@example.com>
- User-agent: Thunderbird 2.0.0.24 (X11/20100317)
Godwin, Edmund, Lewske, Fredricson, Thanks so much for responding. I think Godwin's got the way to go, but I'm having a little trouble implementing it. Problem one is that Firebug keeps giving me the error "elapsed.slice is not a function". I looked it up on the web, and slice is most definitely a function, so I figure something is wrong with the variable "elapsed". Not entirely sure, but then I found out that some of my time stamps were not right. So now I'm questioning this: var now = Math.round(new Date().getTime() / 1000); I got it off the web, and it seemed to be the way to create a Unix time stamp. But it seems to only set an amount of time, but leaves the date as January 1st, 1970. So, before I debug the slice error, I need to know how can I get a nice, properly formatted, and accurate Unix time stamp in Javascript? -- Dave M G
- Follow-Ups:
- Re: [tlug] [OT] Subtracting two times in JavaScript
- From: Darren Cook
- References:
- [tlug] [OT] Subtracting two times in JavaScript
- From: Dave M G
- Re: [tlug] [OT] Subtracting two times in JavaScript
- From: Fredric Fredricson
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] [OT] Subtracting two times in JavaScript
- Next by Date: Re: [tlug] [OT] Subtracting two times in JavaScript
- Previous by thread: Re: [tlug] [OT] Subtracting two times in JavaScript
- Next by thread: Re: [tlug] [OT] Subtracting two times in JavaScript
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links