function to convert degree (hour), minute, seconds string to integer

Marc 'BlackJack' Rintsch bj_666 at gmx.net
Thu Jul 27 03:23:22 EDT 2006


In <1153970281.791627.296400 at b28g2000cwb.googlegroups.com>, John Machin
wrote:

> You may wish to put more restrictions on the separators ... I would be
> suspicious of cases where dms[2] != dms[5]. What plausible separators
> are there besides ":"? Why allow alphabetics? If there's a use case for
> "23h59m59s", that would have to be handled separately.

Looking at the subject I would expect to be able to give 76°04'54" as
argument.  Hm, but degrees don't map directly to hours!?

Ciao,
	Marc 'BlackJack' Rintsch



More information about the Python-list mailing list