Re: [WebDNA] seconds_to_time

This WebDNA talk-list message is from

2017


It keeps the original formatting.
numero = 113472
interpreted = N
texte = 1067 --Apple-Mail=_E1D8BF0A-3DA9-494D-A8B1-0F42802C6DC3 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 G=E2=80=99day Grant !! OK, I understand now, the first second of the day is actually 0 so then = the last will be 86399. So then [MATH]{24:00:00}[/MATH] resolves to 86400 & 00:00:00 resolves to = 0, but in fact they are both the same time. The problem is that if you save 24:00:00 as 86400 and then try to write = it back to 24:00:00 you get 00:00:00. I need to rethink this - maybe = restrict the =E2=80=98clock=E2=80=99 to 23:59:59. Kind regards Stuart Tremain Pharoah Lane Software AUSTRALIA webdna@idfk.com.au > On 20 Mar 2017, at 15:43, Grant Hulbert = wrote: >=20 > 23:59:59 is the last second of a day; 24:00:00 doesn't exist. 00:00:00 = is the beginning of the next day. >=20 > Remember that numbers are zero-based, so 86,400 seconds in a day = really means the range of seconds 0 through 86399. 86,400 would be the = first second of the *next* day. >=20 > On Sun, Mar 19, 2017 at 8:32 PM, Stuart Tremain > wrote: > Why does this=20 >=20 > [FORMAT seconds_to_time]86400[/FORMAT] >=20 > convert to 00:00:00, I would have thought that it should be 24:00:00 >=20 >=20 >=20 > Kind regards >=20 > Stuart Tremain > Pharoah Lane Software > AUSTRALIA > webdna@idfk.com.au >=20 >=20 >=20 >=20 >=20 >=20 > --------------------------------------------------------- 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 --Apple-Mail=_E1D8BF0A-3DA9-494D-A8B1-0F42802C6DC3 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 G=E2=80=99day Grant !!

OK, I understand now, the first second of the day is = actually 0 so then the last will be 86399.

So then [MATH]{24:00:00}[/MATH] = resolves to 86400 & 00:00:00 resolves to 0, but in fact they are = both the same time.

The problem is that if you save 24:00:00 as 86400 and then = try to write it back to 24:00:00 you get 00:00:00. I need to rethink = this - maybe restrict the =E2=80=98clock=E2=80=99 to 23:59:59.

Kind regards

Stuart Tremain
Pharoah Lane Software
AUSTRALIA






On 20 Mar 2017, at 15:43, Grant Hulbert <grant@hulbertfamily.com> wrote:

23:59:59 is the last second of a day; 24:00:00 doesn't exist. = 00:00:00 is the beginning of the next day.

Remember that numbers are zero-based, = so 86,400 seconds in a day really means the range of seconds 0 through = 86399. 86,400 would be the first second of the *next* = day.

On Sun, Mar 19, 2017 at 8:32 PM, Stuart Tremain = <webdna@idfk.com.au> wrote:
Why does this 

[FORMAT = seconds_to_time]86400[/FORMAT]

convert to 00:00:00, I would have = thought that it should be 24:00:00



Kind regards

Stuart Tremain
Pharoah Lane = Software
AUSTRALIA






--------------------------------------------------------- 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 --Apple-Mail=_E1D8BF0A-3DA9-494D-A8B1-0F42802C6DC3-- . Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] seconds_to_time (Stuart Tremain 2017)
  2. Re: [WebDNA] seconds_to_time (Grant Hulbert 2017)
  3. [WebDNA] seconds_to_time (Stuart Tremain 2017)
1067 --Apple-Mail=_E1D8BF0A-3DA9-494D-A8B1-0F42802C6DC3 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 G=E2=80=99day Grant !! OK, I understand now, the first second of the day is actually 0 so then = the last will be 86399. So then [math]{24:00:00}[/MATH] resolves to 86400 & 00:00:00 resolves to = 0, but in fact they are both the same time. The problem is that if you save 24:00:00 as 86400 and then try to write = it back to 24:00:00 you get 00:00:00. I need to rethink this - maybe = restrict the =E2=80=98clock=E2=80=99 to 23:59:59. Kind regards Stuart Tremain Pharoah Lane Software AUSTRALIA webdna@idfk.com.au > On 20 Mar 2017, at 15:43, Grant Hulbert = wrote: >=20 > 23:59:59 is the last second of a day; 24:00:00 doesn't exist. 00:00:00 = is the beginning of the next day. >=20 > Remember that numbers are zero-based, so 86,400 seconds in a day = really means the range of seconds 0 through 86399. 86,400 would be the = first second of the *next* day. >=20 > On Sun, Mar 19, 2017 at 8:32 PM, Stuart Tremain > wrote: > Why does this=20 >=20 > [FORMAT seconds_to_time]86400[/FORMAT] >=20 > convert to 00:00:00, I would have thought that it should be 24:00:00 >=20 >=20 >=20 > Kind regards >=20 > Stuart Tremain > Pharoah Lane Software > AUSTRALIA > webdna@idfk.com.au >=20 >=20 >=20 >=20 >=20 >=20 > --------------------------------------------------------- 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 --Apple-Mail=_E1D8BF0A-3DA9-494D-A8B1-0F42802C6DC3 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 G=E2=80=99day Grant !!

OK, I understand now, the first second of the day is = actually 0 so then the last will be 86399.

So then [math]{24:00:00}[/MATH] = resolves to 86400 & 00:00:00 resolves to 0, but in fact they are = both the same time.

The problem is that if you save 24:00:00 as 86400 and then = try to write it back to 24:00:00 you get 00:00:00. I need to rethink = this - maybe restrict the =E2=80=98clock=E2=80=99 to 23:59:59.

Kind regards

Stuart Tremain
Pharoah Lane Software
AUSTRALIA






On 20 Mar 2017, at 15:43, Grant Hulbert <grant@hulbertfamily.com> wrote:

23:59:59 is the last second of a day; 24:00:00 doesn't exist. = 00:00:00 is the beginning of the next day.

Remember that numbers are zero-based, = so 86,400 seconds in a day really means the range of seconds 0 through = 86399. 86,400 would be the first second of the *next* = day.

On Sun, Mar 19, 2017 at 8:32 PM, Stuart Tremain = <webdna@idfk.com.au> wrote:
Why does this 

[FORMAT = seconds_to_time]86400[/FORMAT]

convert to 00:00:00, I would have = thought that it should be 24:00:00



Kind regards

Stuart Tremain
Pharoah Lane = Software
AUSTRALIA






--------------------------------------------------------- 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 --Apple-Mail=_E1D8BF0A-3DA9-494D-A8B1-0F42802C6DC3-- . Stuart Tremain

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:

Templates for Customer Database? (1997) 2.0 Beta (1997) Banner Ads (2000) OT - quiet on the list today - here's something (2004) [Replace] (2000) Almost There WebCat 5 on itools 7 Install Questions (2003) authorizenet (2001) [OT] Merchant Accounts (2007) [OT]: BBEdit grep (2003) Unexpected error (1997) [WebDNA] Imagemagick (2018) How to Display text in empty fields (1997) WebDNA to PHP (2008) Card clearance, problems - solutions? (1997) [WebDNA] WebDNA Crashing or Not **YES** (2008) Image Sizes (2003) [WebDNA] limit found per row (2011) [WebDNA] Authorize.net SIM, Server Integration Method (2011) WebCat2.0 acgi vs plugin (1997) Paths change questions ... (2004)