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 02:17:39 +0100
- From: Fredric Fredricson <Fredric.Fredricson@example.com>
- Subject: Re: [tlug] [OT] Subtracting two times in JavaScript
- References: <4BA4D0BD.6030802@example.com>
- User-agent: Thunderbird 1.5.0.12 (X11/20071019)
Dave M G wrote:The Date object is for representing a time and date, not an interval. Even if it works most of the time it may not give the expected result if the two times are onI've gone round and round trying to convert times back and forth from Unix time, and using JavaScripts Date() functions which theoretically allow you to subtract times directly...either side of a DST limit. I recommend using the method proposed by Godwin Stewart above. It makes much more sense than trying to use Date as an interval. My $.02 /Fredricbegin:vcard fn:Fredric Fredricson n:Fredricson;Fredric org:Ln4 Solutions AB email;internet:Fredric.Fredricson@example.com title:CTO tel;home:+46 8 91 64 39 tel;cell:+46 70 677 58 48 version:2.1 end:vcard
- Follow-Ups:
- Re: [tlug] [OT] Subtracting two times in JavaScript
- From: Dave M G
- References:
- [tlug] [OT] Subtracting two times in JavaScript
- From: Dave M G
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Changing a file server from XP to Ubuntu [SOLVED]
- 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