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:

ShowNext (1997) Help name our technology! (1997) Search Command, multiple dbs, etc. --still confused (2000) SKU lookup (1997) Memory leak with text variables (1998) [redirect] question (2005) PIXO support (1997) Webcat and logging (1998) Still Stumped on ShowNext...HELP! (1997) RE: [WebDNA] smtp authentication (2008) RE: [WebDNA] [OT] Need to add second SSL host - what are my options? (2010) View Source from cache (1997) Memory Error message (1998) Another bug to squash (WebCat2b13 Mac .acgi) (1997) Multiple catalog databases and showcart (1997) Order not created error (never mind) (1997) WebCatalog as a ListServ (1998) [format 40s]text[/format] doesn't work (1997) Help name our technology! I found it (1997) Showing formatted results in tables (2002)