[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: date and ISO-8601
From: "Piotr Grudzinski" <piotr () powersmiths ! com>
Date: 2008-09-25 17:09:55
Message-ID: 00bd01c91f31$8868fc10$8601a8c0 () Piotr
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
Here are some problems with the date applet and ISO-8601 as of BB 1.12.1
1. Colon separator - use it (extended format) or not (basic format). BB =
seems to mix both:
# date -Iseconds
2008-11-25T12:46:43-0500
There is a missing colon in -0500 (the difference between local time and =
UTC).
2. A 'Z' should be used to designate UTC:
# date -u -Iseconds
2008-11-25T18:05:27UTC
so it should be: 2008-11-25T18:05:27Z
Best Regards,
Piotr
[Attachment #5 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16705" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#c8e1ce>
<DIV><FONT face=Arial size=2>Here are some problems with the date applet and
ISO-8601 as of BB 1.12.1</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>1. Colon separator - use it (extended format) or
not (basic format). BB seems to mix both:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2># date
-Iseconds<BR>2008-11-25T12:46:43-0500<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>There is a missing colon in -0500 (the difference
between local time and UTC).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>2. A 'Z' should be used to designate
UTC:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2># date -u
-Iseconds<BR>2008-11-25T18:05:27UTC<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>so it should be: 2008-11-25T18:05:27Z</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Best Regards,</FONT></DIV>
<DIV><FONT face=Arial size=2>Piotr</DIV>
<DIV><BR></DIV></FONT><FONT face=Arial size=2></FONT></BODY></HTML>
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic