[qmtest] TET result stream

Nathaniel Smith njs at pobox.com
Fri Feb 20 07:37:55 UTC 2004


On Wed, Feb 18, 2004 at 05:27:10PM -0800, Nathaniel Smith wrote:
> Anyway, comments and review requested.

Oh, right, and another bit, added to common.py:

def parse_time_iso(time_string):
    """Parse a ISO8601-compliant formatted date and time.

    See also 'format_time_iso'.

    'time_string' -- The string to be parsed, as returned by
    e.g. 'format_time_iso'.

    returns -- The time as a float, like that returned by
    'time.time'."""

    return time.mktime(time.strptime(time_string, "%Y-%m-%dT%H:%M:%SZ"))

-- Nathaniel

-- 
Eternity is very long, especially towards the end.
  -- Woody Allen

This email may be read aloud.



More information about the qmtest mailing list