The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Date/Time fields


  • Subject: Date/Time fields
  • From: Stuart Booth
  • Date: Sun, 12 Oct 2003 23:20:00 +0000

Here's the Date/Time proposal from Gerry Duprey:

66
DATETIME=YYYYMMDDHHMMSS
DATETIME=YYYYMMDD
DATETIME=HHMMSS
Use of this format for a date/time is MANDATORY if you device
broadcasts a date and/or time in an xAP message. If you are
broadcasting only a date, then drop the last 6 characters from the
message. If you are broadcasting only a time, drop the first 8
characters. A simple parse rule is:

LEN=12 - Full date/time in YYYYMMDDHHMMSS
LEN=8 - Date Only in YYYYMMDD
LEN=6 - Time Only in HHMMSS

Any other length is invalid and the date/time should be discarded.

FORMATTED_DATE=Feb 23, 2002
FORMATTED_TIME=12:45 PM
These are optional but encoruaged. The date/time are not meant to be
parsed and as such are not subject to any particular formatting rules.
But it is expected that however they are formatted is suitable for
unaltered display to a user and expected to be readily
recognizable/understandable by that user.
99

This was proposed in December last year. And we're still discussing
this sort of thing nearly a year later. I believe I know somebody
that'll be laughing (or sighing) at that (IanL!)!

Anyway, the above is what I long ago adopted and what I use for all of
my schema date/time fields, as it's directly supported by my xAP
framework.

Scanning quickly through the older emails to the very original xAP
list makes for some interesting reading. Found an old mail schema that
looks nothing like anything I've ever seen since!!

Hey, at least your schema diff list didn't include the email one,
Stuart(P) !! :-)) We have Patrick's and my new one's a superset of
that which seemed appropriate to me at the time.

S
--
Stuart Booth <<a
href="/group/xAP_developer/post?postID=I9KPHYBKTWUPDD4BFJ4fciqOXyt1jM9oyDob7jzhT-Bas_SbWFHT2dIkXnXWwW2ela1E--jabMjWtwfGslr9ct_9">stuart@x...</a>>
xAPFramework.net - a xAP software development framework for .net

<a href="http://www.xapautomation.org/";>http://www.xapautomation.org/</a>
<a href="http://www.xapframework.net/";>http://www.xapframework.net/</a>





xAP_Development Main Index | xAP_Development Thread Index | xAP_Development Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.