Timestamp

Hi --

Hi --

/ ...

Milliseconds, then, since they appeared as three-digit integers.

Actually the whole thing (44,12 or 23,555 or whatever) is one float,
using a comma separator instead of a dot. The comma is the
"preferred" separator in this context in the ISO 8601 standard, so I
imagine that's being followed here.

Not that I have any doubt about your claim, but I find it hard to believe
that an international standard would specify a locale-specific radix
character.

I'm not sure what the distinction is between doubting and finding it
hard to believe :slight_smile:

Okay, fair enough. I don't doubt that Bush is president, but I find it hard
to believe. That should do it. :slight_smile:

Yes, I see :slight_smile:

Anyway, here's a quote from ISO 8601:

If necessary for a particular application a decimal fraction of hour,
minute or second may be included. If a decimal fraction is included,
lower order components (if any) shall be omitted and the decimal
fraction shall be divided from the integer part by the decimal sign
specified in ISO 31-0: i.e. the comma [,] or full stop [.]. Of these,
the comma is the preferred sign.

This sounds as though the radix sign should follow the locale, as do numbers
in that locale.

It sounds to me like the comma is preferred over the dot, period :slight_smile:
But either is OK.

David

···

On Mon, 27 Nov 2006, Paul Lutus wrote:

dblack@wobblini.net wrote:

On Mon, 27 Nov 2006, Paul Lutus wrote:

dblack@wobblini.net wrote:

--
                   David A. Black | dblack@wobblini.net
Author of "Ruby for Rails" [1] | Ruby/Rails training & consultancy [3]
DABlog (DAB's Weblog) [2] | Co-director, Ruby Central, Inc. [4]
[1] Ruby for Rails | [3] http://www.rubypowerandlight.com
[2] http://dablog.rubypal.com | [4] http://www.rubycentral.org

Paul Lutus schrieb:

Pit Capitain wrote:

Paul, what would you think to be a better separator, and why?

Anything but a separator that depends on locale. A separate field, for
example, one separated by a tab or any other character. Something like
that. (...)

Paul, thanks for the clarification.

Regards,
Pit

dblack@wobblini.net wrote:

/ ...

This sounds as though the radix sign should follow the locale, as do
numbers in that locale.

It sounds to me like the comma is preferred over the dot, period :slight_smile:
But either is OK.

So it seems. I just think protocols that cross international boundaries
(that is to say, all of them) should avoid locale-specific formatting when
it's possible.

···

--
Paul Lutus
http://www.arachnoid.com