🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: be.comp.programming
Article #15191

bedankt mensen

#15191
From: Siegert Naber
Date: Tue, 31 Oct 2000 12:52
43 lines
2346 bytes
He bedankt mensen. Ik heb nu iets om verder mee te gaan.

Siegert

Wim Dumon <wim@easics.be> wrote in message
news:39FE9269.2531E02C@easics.be...
> timvw wrote:
> >
> > Siegert Naber <
> >
> > > Hallo mensen,
> > >
> > > Ik ben een absolute beginner in het programmeergebeuren.
> > > Ik zoek een manier om met JavaScript of ColdFusion seconden om te
zetten
> > in
> > > minuten.
> > > bv. 244 seconden moet 4:04 minuten worden.
> > >
> >
> > ik denk dat je voor javascript eens moet kijken naar java.lang.Date
ofzo,
> > zelf kan je dat toch ook snel maken???
> > int aantalSeconden = 244 %60 ;
> > int aantalMinuten = 244 / 60;
> > if (aantalMinuten > 60) {
> >     aantalMinuten = aantalMinuten % 60;
> >     int aantalUren     = aantalMinuten /60;
> > }
> >
> > is zoiets dat ik op dit uur nog uit de mouw schud.
>
> volgens mij mag uw if weg en moet je de laatste 2 regels omdraaien:
>
> int aantalSeconden = 244;
> int aantalMinuten = aantalSeconden / 60;
> aantalSeconden = aantalSeconden %60 ;
> int aantalUren = aantalMinuten /60;
> aantalMinuten = aantalMinuten % 60;
>
> enzovoorts voor dagen, weken, jaren,...
>
> w.
Technical Details
Message-ID: <972996633.930701@newsreader1.wirehub.nl>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!xfer13.netnews.com!netnews.com!newspeer1.nac.net!newsfeed.wirehub.nl!news.wirehub.nl!not-for-mail
References: <972966227.368320@newsreader2.wirehub.nl> <972966657.888142@marvin> <39FE9269.2531E02C@easics.be>

Show Full Headers
Complete Article Headers
X-Google-Language: DUTCH,ASCII-7-bit
X-Google-Thread: fcea4,13b615c76e8f3a36
X-Google-Attributes: gidfcea4,public
X-Google-ArrivalTime: 2000-10-31 04:50:37 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!supernews.com!xfer13.netnews.com!netnews.com!newspeer1.nac.net!newsfeed.wirehub.nl!news.wirehub.nl!not-for-mail
From: "Siegert Naber" <siegert@diva.nl>
Newsgroups: be.comp.programming
Subject: bedankt mensen
Date: Tue, 31 Oct 2000 13:52:43 +0100
Organization: Wirehub! Internet, The Netherlands
Lines: 45
Message-ID: <972996633.930701@newsreader1.wirehub.nl>
References: <972966227.368320@newsreader2.wirehub.nl> <972966657.888142@marvin> <39FE9269.2531E02C@easics.be>
NNTP-Posting-Host: newsreader1.wirehub.nl
X-Trace: thor.wirehub.nl 972996634 56046 195.86.128.18 (31 Oct 2000 12:50:34 GMT)
X-Complaints-To: abuse@wirehub.net
NNTP-Posting-Date: 31 Oct 2000 12:50:34 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Cache-Post-Path: newsreader1.wirehub.nl!unknown@di16.diva.nl
X-Cache: nntpcache 2.4.0b2 (see http://www.nntpcache.org/)