Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #18607

Re: How do I get current time in hh:mm

Message-ID <1393217.s0XYWeW3uf@PointedEars.de> (permalink)
From Thomas 'PointedEars' Lahn <PointedEars@web.de>
Organization PointedEars Software (PES)
Date 2013-02-24 19:37 +0100
Subject Re: How do I get current time in hh:mm
Newsgroups comp.lang.javascript
References <kg80ll$u70$1@dont-email.me> <1a679606-83c6-4dc8-8224-98135cfb4882@googlegroups.com>

Show all headers | View raw


dann90038@gmail.com wrote:

> To tony

To Tony and dann90038@gmail.com:

This is Usenet; it is not a chat and not a Web forum.  Post accordingly.

1. <http://jibbering.com/faq/#posting>, <http://PointedEars.de/faq#posting>
2. Get a real name.
3. Post only when you are sure (or say when you are not); and when you do
   so, do not use the borken Google Groups.
 
> var d = new Date();
> d.getHours()%12+':'+d.getMinutes();

Wrong.  This will result in a false 12-hour format (there is no zero hour in 
the real format) where hours and minutes do not have the leading zero that a 
“hh:mm” format would require.  Also, nobody said that a 12-hour format would 
be wanted.

-- 
PointedEars

Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.

Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How do I get current time in hh:mm "Tony" <tony.johansson@inport.com> - 2013-02-22 15:52 +0100
  Re: How do I get current time in hh:mm dann90038@gmail.com - 2013-02-22 14:58 -0800
    Re: How do I get current time in hh:mm Jim T. <x@y.z> - 2013-02-22 19:06 -0500
      Re: How do I get current time in hh:mm "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-02-23 11:04 +0100
        Re: How do I get current time in hh:mm Mike Duffy <Use.web.form@website_in_sig.com> - 2013-02-23 16:44 +0000
          Re: How do I get current time in hh:mm "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-02-23 23:39 +0100
            Re: How do I get current time in hh:mm Mike Duffy <Use.web.form@website_in_sig.com> - 2013-02-24 21:38 +0000
              Re: How do I get current time in hh:mm "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-02-25 00:16 +0100
    Re: How do I get current time in hh:mm Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-02-23 21:13 +0000
    Re: How do I get current time in hh:mm Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-02-24 19:37 +0100
      Re: How do I get current time in hh:mm Tim Streater <timstreater@greenbee.net> - 2013-02-24 18:49 +0000
        Re: How do I get current time in hh:mm Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-02-24 19:56 +0100
          Re: How do I get current time in hh:mm Tim Streater <timstreater@greenbee.net> - 2013-02-24 19:26 +0000
            Re: How do I get current time in hh:mm Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-02-24 22:30 +0100
              Re: How do I get current time in hh:mm Tim Streater <timstreater@greenbee.net> - 2013-02-24 23:00 +0000
        Re: How do I get current time in hh:mm Anders Wegge Keller <wegge@wegge.dk> - 2013-02-24 19:59 +0100
      Re: How do I get current time in hh:mm Richard Yates <richard@yatesguitar.com> - 2013-02-24 12:35 -0800
        Re: How do I get current time in hh:mm Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-02-24 22:23 +0100
          Re: How do I get current time in hh:mm Richard Yates <richard@yatesguitar.com> - 2013-02-24 20:40 -0800
            Re: How do I get current time in hh:mm Andrew Poulos <ap_prog@hotmail.com> - 2013-02-25 16:17 +1100
              Re: How do I get current time in hh:mm Richard Yates <richard@yatesguitar.com> - 2013-02-25 10:45 -0800
      Re: How do I get current time in hh:mm John G Harris <niam@jghnorth.org.uk.invalid> - 2013-02-25 10:04 +0000

csiph-web