Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/pybin/test_run.py

    r5bf1f3e rbf71cfd  
    44
    55import pybin.settings
     6import datetime
     7
     8from string import Template
     9
     10class DeltaTemplate(Template):
     11    delimiter = "%"
     12
     13def strfdelta(tdelta, fmt):
     14    d["H"], rem = divmod(tdelta.seconds, 3600)
     15    d["M"], d["S"] = divmod(rem, 60)
     16    t = DeltaTemplate(fmt)
     17    return t.substitute(**d)
    618
    719# Test class that defines what a test is
Note: See TracChangeset for help on using the changeset viewer.