Go Back   Velocity Reviews > Newsgroups > HTML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

HTML - xml date/time

 
Thread Tools Search this Thread
Old 11-02-2009, 06:09 AM   #1
Default xml date/time


Before you go suggesting an xml group, I did check them and none of them
appear to be all that active. At least not on my server.
Then which one of the hundred would be appropriate?

What is the proper way to include the date stamp?
I have been looking and can't seem to find any thing that clearly shows how
to do it.


richard
  Reply With Quote
Old 11-02-2009, 06:17 AM   #2
Nik Coughlin
 
Posts: n/a
Default Re: xml date/time
"richard" <> wrote in message
news:...
> Before you go suggesting an xml group, I did check them and none of them
> appear to be all that active. At least not on my server.
> Then which one of the hundred would be appropriate?
>
> What is the proper way to include the date stamp?
> I have been looking and can't seem to find any thing that clearly shows
> how
> to do it.


XML is just a way to describe data electonically in a textual format, it
doesn't define how you should format dates etc. The wikipedia page does a
good job explaining just what XML is and isn't:

http://en.wikipedia.org/wiki/XML

There are some *recommended* ways to do it however:

http://www.hackcraft.net/web/datetime/#xsd
http://posc.org/ebiz/pefxml/patternsobjects.html#date



Nik Coughlin
  Reply With Quote
Old 11-02-2009, 11:23 AM   #3
Andy Dingley
 
Posts: n/a
Default Re: xml date/time
On 2 Nov, 06:09, richard <mem...@newsguy.com> wrote:

> Then which one of the hundred would be appropriate?


comp.text.xml

> What is the proper way to include the date stamp?


XML is just a transport protocol, not an application. Although it's
widely thought that "anything written in XML can be read by anything
that understands XML", this is a misleading falsehood. XML is just
the starting point, you also need both parties to agree on a shared
vocabulary, which in XML terms would be the "schema".

If the schema has a property that needs date/time as a value domain,
then the schema will indicate how to encode this. If you don't follow
that, then things will break.

If you haven't yet selected a schema, then choose one. It's better to
adopt an existing and widely-used schema than it is to create a new
one. Even if you create the most perfect schema ever, the advantge
(for internet work) is in _communication_ between pre-existing and pre-
understood tools, not in creating new ones specific to your own
project. If you're looking at page metadata, then reading about
"Dublin Core" would be a very good start. If you want to embed
metadata into web pages, then RDFa or even Microformats might be
useful to learn about.


Now, how to represent date/time in XML. There are two ways, one is to
break down the components as separate XML nodes (i.e. element content
or attribute values), but this is needlessly verbose and very rarely
done these days. The other, far more widely used, is to represent
"date/time" as a single string and place that anywhere into yoru XML,
as either an element's content or an attribute's value. The "XML
format" problem now turns back into the old "date/time string format"
problem.

There are two popular solutions to this: RFC822 and ISO8601, which are
easily worked with and converted between, but are different. Both are
"widely used" (they're not going away anytime soon), but I'd suggest
ISO8601.

RFC822 is the older pre-web Internet format for date/time and it's
still used in email messages accordign to RFC822

ISO8601 is a newer "web era" format and is favoured by the W3C, thus
more widely used for web content.

Both of these follow the "generate precisely, consume flexibly"
approach. They're non-trivial formats and there are lots of aspects
you can use, but don't always have to. However anything that parses
them ought to understand the full format and deal with all the
complexities (any sensible langauge will already have parsing
routines, you don't need to write these).

Please indicate the timezone on all of your generated date/time
timestamps. It's a big world out there.

Learn the distinction between 00:00 UTC midnight and something that's
purely a date stamp, or that indicates "local midnight", regardless of
timezone. This makes integration of worldwide systems a lot easier, if
you're clear about it up-front.



Andy Dingley
  Reply With Quote
Old 11-02-2009, 04:40 PM   #4
Jan C. Faerber
 
Posts: n/a
Default Re: xml date/time
On Nov 2, 7:09*am, richard <mem...@newsguy.com> wrote:
> Before you go suggesting an xml group, I did check them and none of them
> appear to be all that active. At least not on my server.
> Then which one of the hundred would be appropriate?
>
> What is the proper way to include the date stamp?
> I have been looking and can't seem to find any thing that clearly shows how
> to do it.


In OOWriter I saved a file in DocBook (.xml) format.
Then your saved file starts with:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">

On
http://www.oasis-open.org/home/index.php

I did a search with "time stamp":

http://search.oasis-open.org/_result...Button=Go#1128
http://docs.oasis-open.org/dss/v1.0/...#_Toc159076065

and found:

<quote src="http://docs.oasis-open.org/dss/v1.0/oasis-dss-core-spec-
v1.0-os.html#_Toc159076065">
The <AddTimestamp> element indicates that the client wishes the server
to embed a timestamp token as a property or attribute of the resultant
or the supplied signature.</quote>



Jan C. Faerber
  Reply With Quote
Old 11-03-2009, 03:47 AM   #5
richard
 
Posts: n/a
Default Re: xml date/time
On Sun, 1 Nov 2009 23:09:38 -0700, richard wrote:

> Before you go suggesting an xml group, I did check them and none of them
> appear to be all that active. At least not on my server.
> Then which one of the hundred would be appropriate?
>
> What is the proper way to include the date stamp?
> I have been looking and can't seem to find any thing that clearly shows how
> to do it.



forget that. I found out how to do it in php much easier. using the date()
thingy.

http://1littleworld.net/code/date1.php


richard
  Reply With Quote
Old 11-03-2009, 01:22 PM   #6
Travis Newbury
 
Posts: n/a
Default Re: xml date/time
On Nov 2, 9:21*am, Sherm Pendley <spamt...@shermpendley.com> wrote:
> > Before you go suggesting an xml group, I did check them and none of them
> > appear to be all that active.

> That doesn't make XML on-topic here.


But being a dick does?

alt.html is for all things web, not just HTML


Travis Newbury
  Reply With Quote
Old 11-03-2009, 03:25 PM   #7
Travis Newbury
 
Posts: n/a
Default Re: xml date/time
On Nov 3, 9:10*am, Sherm Pendley <spamt...@shermpendley.com> wrote:
> >> That doesn't make XML on-topic here.

> > But being a dick does?

> If it did, XML would be on-topic in every group you post in.
> Bye bye asshole. *plonk*


Oh please Shemp don't plonk me... Noooooo I am melting.....
melting.... Whoa is me..... What a world... what a world.....


Travis Newbury
  Reply With Quote
Old 11-03-2009, 09:33 PM   #8
dorayme
 
Posts: n/a
Default Re: xml date/time
In article
<03c6fce1-ec41-4a01-91d0->,
Travis Newbury <> wrote:

> On Nov 3, 9:10*am, Sherm Pendley <spamt...@shermpendley.com> wrote:
> > >> That doesn't make XML on-topic here.
> > > But being a dick does?

> > If it did, XML would be on-topic in every group you post in.
> > Bye bye asshole. *plonk*

>
> Oh please Shemp don't plonk me... Noooooo I am melting.....
> melting.... Whoa is me..... What a world... what a world.....


Hey! This is like the good old days, a bit of fire and spirit coming
back in. Subscribers rattling the keys to their killfiles, others
pretending to be unaffected (c'mon Travs, admit it, you are hurt to the
quick!)

I have said this before, being a keen student of Sherm's plonking
behaviour, he is a softie underneath and you will be out of there in no
time at all. <g>

God, what next? I know, Luigi will come back!

--
dorayme


dorayme
  Reply With Quote
Old 11-03-2009, 11:58 PM   #9
Raymond Schmit
 
Posts: n/a
Default Re: xml date/time
On Mon, 02 Nov 2009 09:21:47 -0500, Sherm Pendley
<> wrote:

>richard <> writes:
>
>> Before you go suggesting an xml group, I did check them and none of them
>> appear to be all that active.

>
>That doesn't make XML on-topic here.
>

That doesn't make XML off-topic here.


Raymond Schmit
  Reply With Quote
Old 11-04-2009, 05:32 AM   #10
Neredbojias
 
Posts: n/a
Default Re: xml date/time
On 03 Nov 2009, Sherm Pendley <> wrote:

> Travis Newbury <> writes:
>
>> On Nov 2, 9:21*am, Sherm Pendley <spamt...@shermpendley.com> wrote:
>>> That doesn't make XML on-topic here.

>>
>> But being a dick does?

>
> If it did, XML would be on-topic in every group you post in.
>
> Bye bye asshole. *plonk*


Ah, pay no attention to Travis. He can't help it; he was born that
way.

--
Neredbojias
http://www.neredbojias.org/
http://www.neredbojias.net/


Neredbojias
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
InCD Date/Time Stamps (Latest Nero) Ian Edmont Computer Support 4 09-14-2006 04:07 PM
Access Date/time to SQL to only show Date Whothehell Software 2 07-27-2006 06:11 PM
Re: How to fix Outlook flag feature problem; printing date/time stamp consistently on any computer. Kadaitcha Man Computer Information 2 02-20-2005 10:05 PM
Netgear DM602 ADSL modem and date/time nemo2 Computer Support 0 06-28-2004 07:20 PM
No daylight savings checkbox in my date/time control panel in winXP Jim Kroger Computer Support 2 10-14-2003 10:55 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46