473,799 Members | 3,009 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Jan 17 '06
12 20611
RobG wrote:
Steven wrote:
On Wed, 18 Jan 2006 04:00:51 GMT, RobG <rg***@iinet.ne t.au> wrote:

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

12am = midnight
12pm = noon


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.


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.

Jan 18 '06 #11
JRS: In article <g0************ *************** *****@4ax.com>, dated
Wed, 18 Jan 2006 16:04:10 remote, seen in news:comp.infos ystems.www.auth
oring.html, Steven <No*****@Syd.au > posted :
On Wed, 18 Jan 2006 04:00:51 GMT, RobG <rg***@iinet.ne t.au> wrote:
The OP is clearly referring to midnight since it is both 12 am and 12 pm
simultaneousl y - noon is neither. ;-)


12am = midnight
12pm = noon


(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.
Jan 18 '06 #12
On Wed, 18 Jan 2006 18:53:50 +0000, Dr John Stockton
<jr*@merlyn.dem on.co.uk> wrote:
JRS: In article <g0************ *************** *****@4ax.com>, dated
Wed, 18 Jan 2006 16:04:10 remote, seen in news:comp.infos ystems.www.auth
oring.html, Steven <No*****@Syd.au > posted :
On Wed, 18 Jan 2006 04:00:51 GMT, RobG <rg***@iinet.ne t.au> wrote:
The OP is clearly referring to midnight since it is both 12 am and 12 pm
simultaneous ly - noon is neither. ;-)
12am = midnight
12pm = noon


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


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.
(b) The initial or the final midnight of the day?

Midnight is usually taken as ending the day; 12 a.m. as starting it.
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.
Using ISO 8601 is unambiguous; for a given day, 00:00, 12:00, & 24:00
are at 12-hour intervals.


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

Jan 19 '06 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
15753
by: George Hester | last post by:
I have a css file this is a portion of it: /* trackaccept.css */ div.track { width:400px; height: 100px; } I have this in my ASP page:
12
2539
by: Duderonomoy | last post by:
Hello, I am querying the JavaScript community to learn if others are having problems with Safari and JavaScript arrays: myImages = ; then referenced like this:
6
3982
by: Fungii | last post by:
Hello, I have a stylesheet that sets p:first-letter to a certain size and colour. I was playing around with Javascript to change paragraph stylesheets using an array like this: var paras = document.all.tags("P"); Although I can change the paragraph colours using this array, the first letter of all the paragraphs remain the same
10
3686
by: quickcur | last post by:
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
8
41525
by: pamelafluente | last post by:
Hi guys, Is it possible to add "onload" (via Javascript) a new class to the <styleheader section? If yes, how would that be done ? <style type="text/css" media="screen"> .NewStyleClass{ whatever } </style>
20
2170
by: Neo Geshel | last post by:
I have been looking into Javascript libraries for the last week or two here, and there are certainly a lot of options out there. http://www.prototypejs.org/ http://mootools.net/ http://mochikit.com/ http://script.aculo.us/ And then there are even add-ons to some of these, such as:
3
11598
by: mfc1981 | last post by:
Hi. I need to access to the hover style of an element with javascript. How can i do this? Best regards Manuel
19
2237
by: maya | last post by:
hi, so what is "modern" javascript?? the same as "DOM-scripting"? i.e., editing content (or changing appearance of content) dynamically by massaging javascript objects, html elements, etc? (in conjunction with css, you know, the usual...;) this is what is meant by "modern" javascript?? so how do folks feel about this who think javascript is so evil they disable it from their browsers?? do sites designed with "modern" javascript...
0
9541
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10252
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10231
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10027
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4141
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3759
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.