Re: [WebDNA] add hours over 24

This WebDNA talk-list message is from

2014


It keeps the original formatting.
numero = 111485
interpreted = N
texte = --001a1133d33a0fcb0c04ff60c1a0 Content-Type: text/plain; charset=UTF-8 Thanks Dan & Stuart, Here is my solution so far. Not very elegant. [format thousands .1d][math][my_var]/60/60[/math][/Format]:[format Seconds_To_Time %M:%S][math][my_var][/math][/format] Stephen F Braun sbraun1@twcny.rr.com On Tue, Jul 29, 2014 at 11:18 PM, Stuart Tremain wrote: > If you are doing seconds_to_time you can not display time greater than > 24:00:00, it just doesn't go that far. > > If you are trying to display the number of seconds in hours minutes > seconds you will have to do some maths trickery with your variable. > > > Regards > > Stuart Tremain > IDFK Web Developments > AUSTRALIA > webdna@idfk.com.au > > > > > On 30 Jul 2014, at 1:14 pm, Steve Braun wrote: > > Thanks Dan, but no. > my_var=1408769 ( in seconds ) > so, [format Seconds_To_Time %H:%M:%S][math][my_var][/math][/format] > gives me 07:19:29 > I want to see 343:19:29 > > > Stephen F Braun > sbraun1@twcny.rr.com > > > On Tue, Jul 29, 2014 at 10:39 PM, Dan Strong wrote: > >> I think you need curly braces (untested) >> >> [format Seconds_To_Time %H:%M:%S][math]{[my_var]}[/math][/format] >> >> http://www.webdna.us/page.dna?numero=36 >> >> -Dan Strong >> http://DanStrong.com >> >> >> On Tue, Jul 29, 2014 at 7:15 PM, Steve Braun >> wrote: >> >>> Hi all, >>> I want to be able to add the number of hours, going over 24. >>> I have a list of times, as seconds, all added, and then I format it. >>> [format Seconds_To_Time %H:%M:%S][math][my_var][/math][/format] >>> >>> I want this: 343:19:29 (H:M:S) >>> I get this: 07:19:29 (H:M:S) >>> 336 hours, has been converted to 14 days, but not >>> shown. >>> >>> This was covered in the old talk-list, with a link to a solution, but >>> now the links is broken. >>> >>> Any ideas? >>> Thanks a bunch. >>> >>> Stephen F Braun >>> sbraun1@twcny.rr.com >>> --------------------------------------------------------- This message >>> is sent to you because you are subscribed to the mailing list . To >>> unsubscribe, E-mail to: archives: >>> http://mail.webdna.us/list/talk@webdna.us Bug Reporting: >>> support@webdna.us >> >> >> --------------------------------------------------------- This message is >> sent to you because you are subscribed to the mailing list . To >> unsubscribe, E-mail to: archives: >> http://mail.webdna.us/list/talk@webdna.us Bug Reporting: >> support@webdna.us > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list . To > unsubscribe, E-mail to: archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list . To > unsubscribe, E-mail to: archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us > --001a1133d33a0fcb0c04ff60c1a0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks Dan & Stuart,
Here is my solution so fa= r.
Not very elegant.

[format thousands .1d][math][my_var]/6= 0/60[/math][/Format]:[format Seconds_To_Time %M:%S][math][my_var][/math][/f= ormat]


Stephen F Braun
sbraun1@twcny.rr.com


On Tue, Jul 29, 2014 at 11:18 PM, Stuart= Tremain <webdna@idfk.com.au> wrote:
If you are doing seconds_to_time you ca= n not display time greater than 24:00:00, it just doesn't go that far.<= div>
If you are trying to display the number of seconds in ho= urs minutes seconds you will have to do some maths trickery with your varia= ble.


Regards

<= /div>
Stuart Tremain
IDFK Web Developments
AUSTRALI= A




On 30 Jul 2014, at 1:14 pm, Steve Braun <sbraun1@twcny.rr.com> wrote= :

Thanks= Dan, but no.
my_var=3D1408769=C2=A0 ( in seconds )
so, =C2=A0=C2=A0 [format Seconds_To_T= ime %H:%M:%S][math][my_var][/math][/format]
gives me=C2=A0=C2=A0 07:19:29
I want to see=C2=A0 343:19:29


<= span style=3D"font-family:verdana,sans-serif">Stephen F Braun
sbraun1@twcny.rr.com<= br>


On Tue, Jul 29, 2014 at 10:39 PM, Dan St= rong <dan@danstrong.com> wrote:
I think you need cur= ly braces (untested)

[format Seconds_To_Time %H:%M:%S][math]{[my_var]}[/math][/format]=C2=A0




On Tue, Jul 29, 2014 at 7:15 P= M, Steve Braun <sbraun1@twcny.rr.com> wrote:
Hi all,
I want to be able to add t= he number of hours, going over 24.
I have a list of times, as seco= nds, all added, and then I format it.
[format Seconds_To_Time %H:%M:%S][= math][my_var][/math][/format]

I want this:=C2=A0=C2=A0 343:19:29=C2=A0=C2=A0 (H:M:S)
I get this: = =C2=A0 =C2=A0=C2=A0 =C2=A0 07:19:29=C2=A0=C2=A0 (H:M:S)=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 336 hours, = has been converted to 14 days, but not shown.

This was co= vered in the old talk-list, with a link to a solution, but now the links is= broken.

Any ideas?
Thanks a bunch.

Stephen F Braun
sbraun1= @twcny.rr.com
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us

--001a1133d33a0fcb0c04ff60c1a0-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] add hours over 24 (Terry Wilson 2014)
  2. Re: [WebDNA] add hours over 24 (Donovan Brooke 2014)
  3. Re: [WebDNA] add hours over 24 (Tom Duke 2014)
  4. Re: [WebDNA] add hours over 24 (Steve Braun 2014)
  5. Re: [WebDNA] add hours over 24 (Stuart Tremain 2014)
  6. Re: [WebDNA] add hours over 24 (Steve Braun 2014)
  7. Re: [WebDNA] add hours over 24 (Dan Strong 2014)
  8. [WebDNA] add hours over 24 (Steve Braun 2014)
--001a1133d33a0fcb0c04ff60c1a0 Content-Type: text/plain; charset=UTF-8 Thanks Dan & Stuart, Here is my solution so far. Not very elegant. [format thousands .1d][math][my_var]/60/60[/math][/Format]:[format Seconds_To_Time %M:%S][math][my_var][/math][/format] Stephen F Braun sbraun1@twcny.rr.com On Tue, Jul 29, 2014 at 11:18 PM, Stuart Tremain wrote: > If you are doing seconds_to_time you can not display time greater than > 24:00:00, it just doesn't go that far. > > If you are trying to display the number of seconds in hours minutes > seconds you will have to do some maths trickery with your variable. > > > Regards > > Stuart Tremain > IDFK Web Developments > AUSTRALIA > webdna@idfk.com.au > > > > > On 30 Jul 2014, at 1:14 pm, Steve Braun wrote: > > Thanks Dan, but no. > my_var=1408769 ( in seconds ) > so, [format Seconds_To_Time %H:%M:%S][math][my_var][/math][/format] > gives me 07:19:29 > I want to see 343:19:29 > > > Stephen F Braun > sbraun1@twcny.rr.com > > > On Tue, Jul 29, 2014 at 10:39 PM, Dan Strong wrote: > >> I think you need curly braces (untested) >> >> [format Seconds_To_Time %H:%M:%S][math]{[my_var]}[/math][/format] >> >> http://www.webdna.us/page.dna?numero=36 >> >> -Dan Strong >> http://DanStrong.com >> >> >> On Tue, Jul 29, 2014 at 7:15 PM, Steve Braun >> wrote: >> >>> Hi all, >>> I want to be able to add the number of hours, going over 24. >>> I have a list of times, as seconds, all added, and then I format it. >>> [format Seconds_To_Time %H:%M:%S][math][my_var][/math][/format] >>> >>> I want this: 343:19:29 (H:M:S) >>> I get this: 07:19:29 (H:M:S) >>> 336 hours, has been converted to 14 days, but not >>> shown. >>> >>> This was covered in the old talk-list, with a link to a solution, but >>> now the links is broken. >>> >>> Any ideas? >>> Thanks a bunch. >>> >>> Stephen F Braun >>> sbraun1@twcny.rr.com >>> --------------------------------------------------------- This message >>> is sent to you because you are subscribed to the mailing list . To >>> unsubscribe, E-mail to: archives: >>> http://mail.webdna.us/list/talk@webdna.us Bug Reporting: >>> support@webdna.us >> >> >> --------------------------------------------------------- This message is >> sent to you because you are subscribed to the mailing list . To >> unsubscribe, E-mail to: archives: >> http://mail.webdna.us/list/talk@webdna.us Bug Reporting: >> support@webdna.us > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list . To > unsubscribe, E-mail to: archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us > > > --------------------------------------------------------- This message is > sent to you because you are subscribed to the mailing list . To > unsubscribe, E-mail to: archives: > http://mail.webdna.us/list/talk@webdna.us Bug Reporting: support@webdna.us > --001a1133d33a0fcb0c04ff60c1a0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks Dan & Stuart,
Here is my solution so fa= r.
Not very elegant.

[format thousands .1d][math][my_var]/6= 0/60[/math][/Format]:[format Seconds_To_Time %M:%S][math][my_var][/math][/f= ormat]


Stephen F Braun
sbraun1@twcny.rr.com


On Tue, Jul 29, 2014 at 11:18 PM, Stuart= Tremain <webdna@idfk.com.au> wrote:
If you are doing seconds_to_time you ca= n not display time greater than 24:00:00, it just doesn't go that far.<= div>
If you are trying to display the number of seconds in ho= urs minutes seconds you will have to do some maths trickery with your varia= ble.


Regards

<= /div>
Stuart Tremain
IDFK Web Developments
AUSTRALI= A




On 30 Jul 2014, at 1:14 pm, Steve Braun <sbraun1@twcny.rr.com> wrote= :

Thanks= Dan, but no.
my_var=3D1408769=C2=A0 ( in seconds )
so, =C2=A0=C2=A0 [format Seconds_To_T= ime %H:%M:%S][math][my_var][/math][/format]
gives me=C2=A0=C2=A0 07:19:29
I want to see=C2=A0 343:19:29


<= span style=3D"font-family:verdana,sans-serif">Stephen F Braun
sbraun1@twcny.rr.com<= br>


On Tue, Jul 29, 2014 at 10:39 PM, Dan St= rong <dan@danstrong.com> wrote:
I think you need cur= ly braces (untested)

[format Seconds_To_Time %H:%M:%S][math]{[my_var]}[/math][/format]=C2=A0




On Tue, Jul 29, 2014 at 7:15 P= M, Steve Braun <sbraun1@twcny.rr.com> wrote:
Hi all,
I want to be able to add t= he number of hours, going over 24.
I have a list of times, as seco= nds, all added, and then I format it.
[format Seconds_To_Time %H:%M:%S][= math][my_var][/math][/format]

I want this:=C2=A0=C2=A0 343:19:29=C2=A0=C2=A0 (H:M:S)
I get this: = =C2=A0 =C2=A0=C2=A0 =C2=A0 07:19:29=C2=A0=C2=A0 (H:M:S)=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 336 hours, = has been converted to 14 days, but not shown.

This was co= vered in the old talk-list, with a link to a solution, but now the links is= broken.

Any ideas?
Thanks a bunch.

Stephen F Braun
sbraun1= @twcny.rr.com
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us

--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us
--------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: archives: http://mail.webdna.us/list/talk@webdna.us Bug Reporting: suppo= rt@webdna.us

--001a1133d33a0fcb0c04ff60c1a0-- Steve Braun

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

WebCommerce: Folder organization ? (1997) Tab Delimited Files / FM Pro (1997) The 10 Mistakes Most Men Make With Women (2006) ShowIf helper? (1998) 2nd WebCatalog2 Feature Request (1996) WebCatalog NT (1996) Web Catalog vs. ICAT (1997) test please ignore (1999) Problem with date and ranges (2002) Post (1997) Secure Server (1999) Erotic Sites (1997) [WebDNA] 30 Minute Cookies (2016) WebCat cannot handle compatible search parameters? (1997) Speed Admin? (Was FlushDatabases) (1997) Upgrading old WebCat Database Files (1997) PCS Customer submissions ? (1997) Emailer 1.0.2 Conflicts? (1998) Stumpted Again (1997) Weird problems with [SHOWIF]s (1997)