The Museum of HP Calculators

HP Forum Archive 21

[ Return to Index | Top of Index ]

Date/time formats
Message #1 Posted by R. Pienne on 30 Oct 2013, 9:15 a.m.

A recent thread which discussed the various formats available in the WP-34s for representing dates and times got me thinking.

I don't like to see a calculator having so many arbitrary date/time input/output format options catering to different cultural traditions, when there is one sensible standard human-readable but culture-free (apart from using the Gregorian calendar) format promoted by international standards for technical work.

That format is YYYY-MM-DD HH:MM:SS . See http://www.iso.org/iso/iso8601. For calculators the equivalent would be YYYYMMDD.HHMMSS, with the seconds truncated if they can't fit. Human-readable time quantities can be represented on a calculator in a compatible format: D.HHMMSSs . I realise that would be incompatible with the degree-min-sec format and its conversion functions, but we are dealing with different units.

We need to get used to one sensible standard format for technical work, and stop cluttering up our devices with so many options that just get in the way. I admire the spirit behind the 34s, and might be interested in getting one myself, but just wish it wasn't so cluttered. I'm eagerly watching the progress of the 43s; maybe the developers might consider these points.

R.

P.S. 35s users (and others) might be interested in revisiting a set of date/time programs I posted a while back: http://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/archv021.cgi?read=252087

      
Re: Date/time formats
Message #2 Posted by Walter B on 30 Oct 2013, 9:59 a.m.,
in response to message #1 by R. Pienne

You're completely right :-) but real life is different ;-)

Please see the respective remarks in the WP 34S Owner's Manual in the chapter about "localisation".

d:-)

      
NT: Standards are good! Everybody his standard!
Message #3 Posted by Mike (Stgt) on 30 Oct 2013, 10:18 a.m.,
in response to message #1 by R. Pienne

.

      
Re: Date/time formats
Message #4 Posted by Maximilian Hohmann on 30 Oct 2013, 10:39 a.m.,
in response to message #1 by R. Pienne

Hello!

Quote:
We need to get used to one sensible standard format for technical work...

... like the metric system (ISO 31). Would save a lot of conversion factors if everybody could adapt to that :-)

Quote:
...catering to different cultural traditions...

... which I would not want to give up just to save a couple of bytes for a pocket calculator operating system!

Regards Max

      
Re: Date/time formats
Message #5 Posted by Marcus von Cube, Germany on 1 Nov 2013, 12:43 p.m.,
in response to message #1 by R. Pienne

You are talking about time stamps which always combine a date with a time. These should be considered time zone independent. So the internal form of a time stamp needs to be something like YYYYMMDDhhmmss.frac UTC or even a value seconds.frac based on a certain point in time. The former is used by SAP while the latter is more often seen in Unix like environments.

A time value is a different beast because it denotes either a recurring point in (local) time or a duration, not a fixed point in time.

A date value is not a single point in time either, but a time interval of 24 hours and should always be considered local.

The latter two are local and should be displayed as such.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall