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:

Formatting Email (2000) Price problem (1997) upgrading (1997) Problem: 3.0 doesn't update carts (1997) Re:no [search] with NT (1997) Just Testing (1997) Multi Actions (1999) Emailer 1.01 bombs (1997) Word wrapping (1997) Format of Required fields error message (1997) &fieldsdir=ra truely random?? (2000) RAM variables (1997) math variable security [MEDIUM LONG] (2000) Running 2 two WebCatalog.acgi's (1996) Running _every_ page through WebCat-error.html (1997) Upgrading old WebCat Database Files (1997) creating a ShipCosts database (1997) How can I Add several Items into the cart at once? (1997) if/then/else in founditems (2001) Webcat/Webmerchant part II (1998)