javascript time selector

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • quickcur@yahoo.com

    javascript time selector

    Hi all:

    There are many javascript date selector available which help you input
    date in a text field. And we see a lot of this on travel site when you
    select date for air ticket. Could anyone point me a time selector? I am
    looking for something that can input time as 12:00:00 AM.

    Thanks,

    qq

  • Beauregard T. Shagnasty

    #2
    Re: javascript time selector

    quickcur@yahoo. com wrote:
    [color=blue]
    > There are many javascript date selector available which help you input
    > date in a text field. And we see a lot of this on travel site when
    > you select date for air ticket. Could anyone point me a time
    > selector? I am looking for something that can input time as 12:00:00
    > AM.[/color]

    You are implying you want me (the visitor) to input the current time on
    *my* computer. Are you sure you want to do that? Due to my depleted
    CMOS battery, my current time is ... four days, six hours, nine minutes
    ago.

    --
    -bts
    -Warning: I brake for lawn deer

    Comment

    • Dan Rumney

      #3
      Re: javascript time selector

      did you try searching the internet?

      Google: javascript time selector
      First hit


      Comment

      • Dr John Stockton

        #4
        Re: javascript time selector

        JRS: In article <1137520266.366 736.27350@g47g2 000cwa.googlegr oups.com>,
        dated Tue, 17 Jan 2006 09:51:06 remote, seen in news:comp.infos ystems.ww
        w.authoring.htm l, quickcur@yahoo. com posted :
        [color=blue]
        >There are many javascript date selector available which help you input
        >date in a text field.[/color]

        One wonders what you think the *.javascript newsgroups were created for.
        [color=blue]
        > And we see a lot of this on travel site when you
        >select date for air ticket. Could anyone point me a time selector?[/color]

        See in <URL:http://www.merlyn.demo n.co.uk/js-date6.htm>.
        [color=blue]
        > I am
        >looking for something that can input time as 12:00:00 AM.[/color]

        That's FFF. On the Web, international standards should be followed.

        12:00:00 AM itself, of course, is ridiculous.


        *** DO NOT MULTI-POST ***

        --
        © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 MIME. ©
        Web <URL:http://www.merlyn.demo n.co.uk/> - w. FAQish topics, links, acronyms
        PAS EXE etc : <URL:http://www.merlyn.demo n.co.uk/programs/> - see 00index.htm
        Dates - miscdate.htm moredate.htm js-dates.htm pas-time.htm critdate.htm etc.

        Comment

        • RobG

          #5
          Re: javascript time selector

          Dr John Stockton wrote:[color=blue]
          > JRS: In article <1137520266.366 736.27350@g47g2 000cwa.googlegr oups.com>,
          > dated Tue, 17 Jan 2006 09:51:06 remote, seen in news:comp.infos ystems.ww
          > w.authoring.htm l, quickcur@yahoo. com posted :[/color]
          [...][color=blue]
          >[color=green]
          >>I am
          >>looking for something that can input time as 12:00:00 AM.[/color]
          >
          >
          > That's FFF. On the Web, international standards should be followed.
          >
          > 12:00:00 AM itself, of course, is ridiculous.
          >[/color]

          The OP is clearly referring to midnight since it is both 12 am and 12 pm
          simultaneously - noon is neither. ;-)



          --
          Rob

          Comment

          • Steven

            #6
            Re: javascript time selector

            On Wed, 18 Jan 2006 04:00:51 GMT, RobG <rgqld@iinet.ne t.au> wrote:
            [color=blue]
            >The OP is clearly referring to midnight since it is both 12 am and 12 pm
            >simultaneous ly - noon is neither. ;-)[/color]

            12am = midnight
            12pm = noon

            -- Steven

            Comment

            • RobG

              #7
              Re: javascript time selector

              Steven wrote:[color=blue]
              > On Wed, 18 Jan 2006 04:00:51 GMT, RobG <rgqld@iinet.ne t.au> wrote:
              >
              >[color=green]
              >>The OP is clearly referring to midnight since it is both 12 am and 12 pm
              >>simultaneousl y - noon is neither. ;-)[/color]
              >
              >
              > 12am = midnight
              > 12pm = noon[/color]

              That might agree with colloquial use in a few places, but I don't think
              you'll find a single authority that will agree with you.

              The terms 12 am and 12 pm are confusing and should never be used.

              <URL:http://wwp.greenwichme antime.com/info/noon.htm>
              <URL:http://tf.nist.gov/general/misc.htm#Anchor-57026>
              <URL:http://www.worldtimezo ne.com/wtz-names/wtz-am-pm.html>

              --
              Rob

              Comment

              • Steven

                #8
                Re: javascript time selector

                On Wed, 18 Jan 2006 05:42:19 GMT, RobG <rgqld@iinet.ne t.au> wrote:
                [color=blue][color=green]
                >>Steven wrote:
                >> 12am = midnight
                >> 12pm = noon[/color]
                >
                >That might agree with colloquial use in a few places, but I don't think
                >you'll find a single authority that will agree with you.[/color]

                I will investigate.
                [color=blue]
                >The terms 12 am and 12 pm are confusing and should never be used.[/color]

                Yes they are confusing. I always put it down to the fact that people
                like numbering things from 1 not 0. So in this case 12am is really 0am.
                I still think that 12am (0am) is valid because the day starts at 0 and
                it is before midday. Similarly, 12pm is really 0pm which is 0 hours
                after midday.

                A local shop advertised its opening hours as 7:30am to 12:00am. This
                sounded like a short day but of course it wasn't.
                [color=blue]
                > <URL:http://wwp.greenwichme antime.com/info/noon.htm>
                > <URL:http://tf.nist.gov/general/misc.htm#Anchor-57026>
                > <URL:http://www.worldtimezo ne.com/wtz-names/wtz-am-pm.html>[/color]

                These links do suggest that 12am and 12pm are taboo. I certainly won't
                mind if everybody uses a 24-hour clock instead. However, 12am and 12pm
                do appear frequently and I know what they mean.

                -- Steven

                Comment

                • Dr John Stockton

                  #9
                  Re: javascript time selector

                  JRS: In article <1hdxhgnynkwfr. 1qdrdpl0ff4y6.d lg@40tude.net>, dated
                  Tue, 17 Jan 2006 18:47:11 remote, seen in news:comp.infos ystems.www.auth
                  oring.html, Beauregard T. Shagnasty <a.nony.mous@ex ample.invalid> posted
                  :[color=blue]
                  >quickcur@yahoo .com wrote:
                  >[color=green]
                  >> There are many javascript date selector available which help you input
                  >> date in a text field. And we see a lot of this on travel site when
                  >> you select date for air ticket. Could anyone point me a time
                  >> selector? I am looking for something that can input time as 12:00:00
                  >> AM.[/color]
                  >
                  >You are implying you want me (the visitor) to input the current time on
                  >*my* computer. Are you sure you want to do that? Due to my depleted
                  >CMOS battery, my current time is ... four days, six hours, nine minutes
                  >ago.[/color]

                  You're being silly.

                  If the computer's idea of the current time were wanted, then the code
                  would get it directly, perhaps when authorised by a "click".

                  Those with access to a watch or clock can easily input the current time,
                  near enough.

                  In selecting date or time for an air ticket, it must be rare to use the
                  current time; usually the future, sometimes the past, will be
                  appropriate.

                  And, since he wants to be able to choose 12:00:00 AM, then to get that
                  from the computer clock would require the "Eccles" method.

                  --
                  © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 MIME. ©
                  Web <URL:http://www.merlyn.demo n.co.uk/> - w. FAQish topics, links, acronyms
                  PAS EXE etc : <URL:http://www.merlyn.demo n.co.uk/programs/> - see 00index.htm
                  Dates - miscdate.htm moredate.htm js-dates.htm pas-time.htm critdate.htm etc.

                  Comment

                  • Beauregard T. Shagnasty

                    #10
                    Re: javascript time selector

                    Dr John Stockton wrote:
                    [color=blue]
                    > Beauregard T. Shagnasty posted
                    >:[color=green]
                    >>quickcur@yaho o.com wrote:
                    >>[color=darkred]
                    >>> There are many javascript date selector available which help you
                    >>> input date in a text field. And we see a lot of this on travel site
                    >>> when you select date for air ticket. Could anyone point me a time
                    >>> selector? I am looking for something that can input time as
                    >>> 12:00:00 AM.[/color]
                    >>
                    >> You are implying you want me (the visitor) to input the current time
                    >> on *my* computer. Are you sure you want to do that? Due to my
                    >> depleted CMOS battery, my current time is ... four days, six hours,
                    >> nine minutes ago.[/color]
                    >
                    > You're being silly.[/color]

                    Of course.
                    [color=blue]
                    > If the computer's idea of the current time were wanted, then the code
                    > would get it directly, perhaps when authorised by a "click".
                    >
                    > Those with access to a watch or clock can easily input the current
                    > time, near enough.[/color]

                    ...though a bit hard for a script to use those watches and clocks.
                    [color=blue]
                    > In selecting date or time for an air ticket, it must be rare to use
                    > the current time; usually the future, sometimes the past, will be
                    > appropriate.[/color]

                    My point exactly. Sorry you didn't understand how I wrote it. I should
                    have wrapped it in <humour> tags.

                    --
                    -bts
                    -Warning: I brake for lawn deer

                    Comment

                    • Tony

                      #11
                      Re: javascript time selector

                      RobG wrote:[color=blue]
                      > Steven wrote:[color=green]
                      > > On Wed, 18 Jan 2006 04:00:51 GMT, RobG <rgqld@iinet.ne t.au> wrote:
                      > >
                      > >[color=darkred]
                      > >>The OP is clearly referring to midnight since it is both 12 am and 12 pm
                      > >>simultaneousl y - noon is neither. ;-)[/color]
                      > >
                      > >
                      > > 12am = midnight
                      > > 12pm = noon[/color]
                      >
                      > That might agree with colloquial use in a few places, but I don't think
                      > you'll find a single authority that will agree with you.
                      >
                      > The terms 12 am and 12 pm are confusing and should never be used.[/color]

                      I don't find the reference to 12 pm very confusing in a context like:

                      10am
                      11am
                      12pm
                      1pm
                      2pm

                      - I would say it's pretty clear which 12 is intended in that case.

                      Comment

                      • Dr John Stockton

                        #12
                        Re: javascript time selector

                        JRS: In article <g0jrs19c9ospl6 u4i9bdemtm90073 1qh0v@4ax.com>, dated
                        Wed, 18 Jan 2006 16:04:10 remote, seen in news:comp.infos ystems.www.auth
                        oring.html, Steven <NoEmail@Syd.au > posted :[color=blue]
                        >On Wed, 18 Jan 2006 04:00:51 GMT, RobG <rgqld@iinet.ne t.au> wrote:
                        >[color=green]
                        >>The OP is clearly referring to midnight since it is both 12 am and 12 pm
                        >>simultaneousl y - noon is neither. ;-)[/color]
                        >
                        >12am = midnight
                        >12pm = noon[/color]

                        (a) One cannot rely on people understanding that and getting it right.

                        (b) The initial or the final midnight of the day?

                        Midnight is usually taken as ending the day; 12 a.m. as starting it.

                        Using ISO 8601 is unambiguous; for a given day, 00:00, 12:00, & 24:00
                        are at 12-hour intervals.

                        --
                        © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 MIME. ©
                        Web <URL:http://www.merlyn.demo n.co.uk/> - w. FAQish topics, links, acronyms
                        PAS EXE etc : <URL:http://www.merlyn.demo n.co.uk/programs/> - see 00index.htm
                        Dates - miscdate.htm moredate.htm js-dates.htm pas-time.htm critdate.htm etc.

                        Comment

                        • Steven

                          #13
                          Re: javascript time selector

                          On Wed, 18 Jan 2006 18:53:50 +0000, Dr John Stockton
                          <jrs@merlyn.dem on.co.uk> wrote:
                          [color=blue]
                          >JRS: In article <g0jrs19c9ospl6 u4i9bdemtm90073 1qh0v@4ax.com>, dated
                          >Wed, 18 Jan 2006 16:04:10 remote, seen in news:comp.infos ystems.www.auth
                          >oring.html, Steven <NoEmail@Syd.au > posted :[color=green]
                          >>On Wed, 18 Jan 2006 04:00:51 GMT, RobG <rgqld@iinet.ne t.au> wrote:
                          >>[color=darkred]
                          >>>The OP is clearly referring to midnight since it is both 12 am and 12 pm
                          >>>simultaneous ly - noon is neither. ;-)[/color]
                          >>
                          >>12am = midnight
                          >>12pm = noon[/color]
                          >
                          >(a) One cannot rely on people understanding that and getting it right.[/color]

                          I don't have a problem with the terms midnight and noon. I do disagree
                          with the statement that both 12am and 12pm are midnight. With a 12-hour
                          clock the day is split into halves. The first hour in each half should
                          be zero but for some reason it is called 12. So 12am is 0am is the
                          start of the first half and 12pm is 0pm is the start of the second half.
                          If you don't like 0 hours just remember that 12:30pm is lunchtime and
                          12pm is half an hour before. The statement that 12pm is twleve hours
                          after midday is incorrect because hours aren't labelled that way.
                          [color=blue]
                          >(b) The initial or the final midnight of the day?
                          >
                          >Midnight is usually taken as ending the day; 12 a.m. as starting it.[/color]

                          I would argue that midnight is the start of the next day because the day
                          increments as the hour wraps around. However, I agree that most people
                          would regard midnight on the 19th to be the end of the 19th day rather
                          than the start. For this reason I would use 12am instead.

                          This thread started with a question about accepting time entries and
                          used 12:00:00am as an example. Most people I know don't like or use
                          24-hour time so accepting am/pm entires sounds good to me. An adjacent
                          note saying 12pm is midday and 12am is midnight (start of day) would be
                          a good idea.
                          [color=blue]
                          >Using ISO 8601 is unambiguous; for a given day, 00:00, 12:00, & 24:00
                          >are at 12-hour intervals.[/color]

                          I think ISO 8601 is great and use it whenever I'm not forced to do
                          otherwise. Isn't 24:00 a great feature here.

                          -- Steven

                          Comment

                          Working...