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:

ImageMagick on OSX (2003) What am I missing (1997) NT BETA BUG???? (1997) Loop context to replace items (1998) Meet your competition (2000) WebCatalog Eating 200% of the CPU (2002) [WebDNA] proxy server domains mysteriously appear in webdna's domain list (2010) checking for [ and ] in form fields ... (1997) New syntax feedback for 4.0 (2000) UPDATE PROBLEM (1997) Memory Parameters (1998) [ShowIf] and empty fields (1997) RE: [WebDNA] Latest Windows Version (2010) WebCatalog/WebMerchant 2.1 (1998) WebCatalog dying in WebTen (1998) Searching (1999) Nesting format tags (1997) Frames and WebCat (1997) [WebDNA] How to stop cutting a word (2008) Wanted: Broader string manipulation functions (1997)