Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Date/Time Standred Formats

 
Goto page 1, 2
   Web Hosting and Web Master Forums (Home) -> Webmaster RSS
Next:  What'a a Subnetwork?  
Author Message
saveworldfroma

External


Since: Aug 20, 2004
Posts: 38



(Msg. 1) Posted: Sat Aug 14, 2004 1:13 pm
Post subject: Date/Time Standred Formats
Archived from groups: alt>www>webmaster, others (more info?)

What is the standreds for date/time formats, such as %H %n %M %m etc. Do PHP
and Perl use the same format as date in shell?

 >> Stay informed about: Date/Time Standred Formats 
Back to top
Login to vote
spamblocked

External


Since: Sep 14, 2004
Posts: 588



(Msg. 2) Posted: Sat Aug 14, 2004 1:33 pm
Post subject: Re: Date/Time Standred Formats [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

<a style='text-decoration: underline;' href="http://links.i6networks.com" target="_blank">http://links.i6networks.com</a> wrote:

 > What is the standreds for date/time formats

One of the most wriggly cans of worms you will encounter as you bumble
through the labyrinth of IT nonsense.

You need a format that is non-ambiguous.

My fav is: dd-mmm-yyyy hh:mm:ss:hh

Of course there is the nasty, messy business of Time Zones to consider.

What paricular issue do you have atm?

--
William Tasso
Recommended reading ...
<a style='text-decoration: underline;' href="http://www.catb.org/~esr/faqs/smart-questions.html" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a>
<a style='text-decoration: underline;' href="http://www.aww-faq.org/" target="_blank">http://www.aww-faq.org/</a><!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Date/Time Standred Formats 
Back to top
Login to vote
user387

External


Since: Feb 13, 2004
Posts: 1055



(Msg. 3) Posted: Sat Aug 14, 2004 1:37 pm
Post subject: Re: Date/Time Standred Formats [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

William Tasso wrote:

  >> What is the standreds for date/time formats
 >
 > One of the most wriggly cans of worms you will encounter as
 > you bumble through the labyrinth of IT nonsense.
 >
 > You need a format that is non-ambiguous.

True.

 > My fav is: dd-mmm-yyyy hh:mm:ss:hh

What the last hh for?

--
Els
<a style='text-decoration: underline;' href="http://locusmeus.com/" target="_blank">http://locusmeus.com/</a>
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Date/Time Standred Formats 
Back to top
Login to vote
spamblocked

External


Since: Sep 14, 2004
Posts: 588



(Msg. 4) Posted: Sat Aug 14, 2004 1:58 pm
Post subject: Re: Date/Time Standred Formats [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Els wrote:

 > William Tasso wrote:
  >>
  >> My fav is: dd-mmm-yyyy hh:mm:ss:hh
 >
 > What the last hh for?
 >

In addition to the excellent answer from Toby ....

Hundredths of a second (I just couldn't remember what char is usually used
to express it - still can't)

--
William Tasso<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Date/Time Standred Formats 
Back to top
Login to vote
user387

External


Since: Feb 13, 2004
Posts: 1055



(Msg. 5) Posted: Sat Aug 14, 2004 1:58 pm
Post subject: Re: Date/Time Standred Formats [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

William Tasso wrote:

 > Els wrote:
 >
  >> William Tasso wrote:
   >>>
   >>> My fav is: dd-mmm-yyyy hh:mm:ss:hh
  >>
  >> What the last hh for?
  >>
 >
 > In addition to the excellent answer from Toby ....
 >
 > Hundredths of a second (I just couldn't remember what char
 > is usually used to express it - still can't)

%%?

--
Els
<a style='text-decoration: underline;' href="http://locusmeus.com/" target="_blank">http://locusmeus.com/</a>
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Date/Time Standred Formats 
Back to top
Login to vote
usenet200408

External


Since: Aug 02, 2004
Posts: 145



(Msg. 6) Posted: Sat Aug 14, 2004 2:28 pm
Post subject: Re: Date/Time Standred Formats [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

<a style='text-decoration: underline;' href="http://links.i6networks.com" target="_blank">http://links.i6networks.com</a> wrote:

 > What is the standreds for date/time formats, such as %H %n %M %m etc. Do PHP
 > and Perl use the same format as date in shell?

Perl has no built in date formatting stuff, though the POSIX module
includes an interface to the strftime() system call. That uses the same
formatting as /usr/bin/date.

PHP has its own format. <a style='text-decoration: underline;' href="http://www.php.net/date" target="_blank">http://www.php.net/date</a>

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ <a style='text-decoration: underline;' href="http://tobyinkster.co.uk/contact" target="_blank">http://tobyinkster.co.uk/contact</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Date/Time Standred Formats 
Back to top
Login to vote
saveworldfroma

External


Since: Aug 20, 2004
Posts: 38



(Msg. 7) Posted: Sat Aug 14, 2004 2:28 pm
Post subject: Re: Date/Time Standred Formats [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

  > > What is the standreds for date/time formats, such as %H %n %M %m etc. Do
PHP
  > > and Perl use the same format as date in shell?
 >
 > Perl has no built in date formatting stuff, though the POSIX module
 > includes an interface to the strftime() system call. That uses the same
 > formatting as /usr/bin/date.
 >
<font color=purple> > PHP has its own format. <a style='text-decoration: underline;' href="http://www.php.net/date</font" target="_blank">http://www.php.net/date</font</a>>
 >

Thanks for the php date info. What about the format for /user/bin/date? Any
similar table as on <a style='text-decoration: underline;' href="http://www.php.net/date" target="_blank">http://www.php.net/date</a>

I remember Apache web server's SSI has a date format for the
last-modified-date. Is that the same as php date or shell date?<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Date/Time Standred Formats 
Back to top
Login to vote
usenet200408

External


Since: Aug 02, 2004
Posts: 145



(Msg. 8) Posted: Sat Aug 14, 2004 2:43 pm
Post subject: Re: Date/Time Standred Formats [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Els wrote:
 > William Tasso wrote:
 >
  >> You need a format that is non-ambiguous.
  >> My fav is: dd-mmm-yyyy hh:mm:ss:hh
 >
 > What the last hh for?

Emphasis.

It's 11:42! Yes! 11!!!

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ <a style='text-decoration: underline;' href="http://tobyinkster.co.uk/contact" target="_blank">http://tobyinkster.co.uk/contact</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Date/Time Standred Formats 
Back to top
Login to vote
user387

External


Since: Feb 13, 2004
Posts: 1055



(Msg. 9) Posted: Sat Aug 14, 2004 2:43 pm
Post subject: Re: Date/Time Standred Formats [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Toby Inkster wrote:

 > Els wrote:
  >> William Tasso wrote:
  >>
   >>> You need a format that is non-ambiguous.
   >>> My fav is: dd-mmm-yyyy hh:mm:ss:hh
  >>
  >> What the last hh for?
 >
 > Emphasis.
 >
 > It's 11:42! Yes! 11!!!

<g>

--
Els
<a style='text-decoration: underline;' href="http://locusmeus.com/" target="_blank">http://locusmeus.com/</a>
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Date/Time Standred Formats 
Back to top
Login to vote
usenet

External


Since: Sep 14, 2004
Posts: 1119



(Msg. 10) Posted: Sat Aug 14, 2004 2:50 pm
Post subject: Re: Date/Time Standred Formats [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Engaging mouth before brain, William Tasso wrote:

 > You need a format that is non-ambiguous.
 >
 > My fav is: dd-mmm-yyyy hh:mm:ss:hh

My fav is "dd(st|nd|rd|th) mmm, yyyy" sod the time, I can never be
bothered with it Wink

--
Dylan Parry
<a style='text-decoration: underline;' href="http://webpageworkshop.co.uk" target="_blank">http://webpageworkshop.co.uk</a> - FREE Web tutorials and references

'I am a Bear of Very Little Brain, and long words bother me.' -- A A Milne<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Date/Time Standred Formats 
Back to top
Login to vote
usenet200408

External


Since: Aug 02, 2004
Posts: 145



(Msg. 11) Posted: Sat Aug 14, 2004 3:03 pm
Post subject: Re: Date/Time Standred Formats [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

William Tasso wrote:

 > Hundredths of a second (I just couldn't remember what char is usually used
 > to express it - still can't)

I think it's "mtwntk".

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ <a style='text-decoration: underline;' href="http://tobyinkster.co.uk/contact" target="_blank">http://tobyinkster.co.uk/contact</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Date/Time Standred Formats 
Back to top
Login to vote
usenet200408

External


Since: Aug 02, 2004
Posts: 145



(Msg. 12) Posted: Sat Aug 14, 2004 3:06 pm
Post subject: Re: Date/Time Standred Formats [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

<a style='text-decoration: underline;' href="http://links.i6networks.com" target="_blank">http://links.i6networks.com</a> wrote:

 > What about the format for /user/bin/date?

Type "man date" at your command prompt, or Google for "man date".

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ <a style='text-decoration: underline;' href="http://tobyinkster.co.uk/contact" target="_blank">http://tobyinkster.co.uk/contact</a><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Date/Time Standred Formats 
Back to top
Login to vote
saveworldfroma

External


Since: Aug 20, 2004
Posts: 38



(Msg. 13) Posted: Sat Aug 14, 2004 3:06 pm
Post subject: Re: Date/Time Standred Formats [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

  > > What about the format for /user/bin/date?
 >
 > Type "man date" at your command prompt, or Google for "man date".
 >

thanks. i got it.
do you know why different systems use different formats? is there an ISO
standrad?

do you know which format Apache is using? PHP or Shell?<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Date/Time Standred Formats 
Back to top
Login to vote
cfajohnson

External


Since: Aug 14, 2004
Posts: 65



(Msg. 14) Posted: Sun Aug 15, 2004 12:35 am
Post subject: Re: Date/Time Standred Formats [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2004-08-14, William Tasso wrote:
 > <a style='text-decoration: underline;' href="http://links.i6networks.com" target="_blank">http://links.i6networks.com</a> wrote:
 >
  >> What is the standreds for date/time formats
 >
 > One of the most wriggly cans of worms you will encounter as you bumble
 > through the labyrinth of IT nonsense.
 >
 > You need a format that is non-ambiguous.
 >
 > My fav is: dd-mmm-yyyy hh:mm:ss:hh

I prefer the SI standard for the date, yyyy-mm-dd, as it sorts
correctly with standard tools.

--
Chris F.A. Johnson <a style='text-decoration: underline;' href="http://cfaj.freeshell.org/shell" target="_blank">http://cfaj.freeshell.org/shell</a>
===================================================================
My code (if any) in this post is copyright 2004, Chris F.A. Johnson
and may be copied under the terms of the GNU General Public License<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Date/Time Standred Formats 
Back to top
Login to vote
spamblocked

External


Since: Sep 14, 2004
Posts: 588



(Msg. 15) Posted: Sun Aug 15, 2004 1:38 am
Post subject: Re: Date/Time Standred Formats [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Chris F.A. Johnson wrote:

 > On 2004-08-14, William Tasso wrote:
  >> <a style='text-decoration: underline;' href="http://links.i6networks.com" target="_blank">http://links.i6networks.com</a> wrote:
  >>
   >>> What is the standreds for date/time formats
  >>
  >> One of the most wriggly cans of worms you will encounter as you bumble
  >> through the labyrinth of IT nonsense.
  >>
  >> You need a format that is non-ambiguous.
  >>
  >> My fav is: dd-mmm-yyyy hh:mm:ss:hh
 >
 > I prefer the SI standard for the date, yyyy-mm-dd, as it sorts
 > correctly with standard tools.
 >

It does, unfortunately it is ambiguous to both humans and machines.

--
William Tasso<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Date/Time Standred Formats 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Date/Time on Sites - Hi, can someone please advise where I can find out how to get an applet or something that can put the time and date on my site. Thanks

[OT] What happened on this date in... - What happened on this date in... 1492?

date ORDER BY - Hi, I'm currently running a sql select statement on a date field which is ordered by the date field in ascending order. It worked fine for the 1st to the 9th of the month but when it output 10th, 11th, 12th etc. it put them before the 1st. So I was..

Expiry date of Australian .au domains - Does anyone know of a good WHOIS resource for .au domains? Like www.whois.sc .... I need to find the expiry date of a registered name, but all WHOIS records I find seem incomplete. Regards, Erik

[OT] Too much time ... - .... on someone's hands: http://www.ptg.org/pipermail/caut/1997-September/000153.html -- Judy
   Web Hosting and Web Master Forums (Home) -> Webmaster All times are: Pacific Time (US & Canada) (change)
Goto page 1, 2
Page 1 of 2

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]