src/modules/misc.py
branchs11-sru
changeset 2637 5b524def9b53
parent 2583 7d4db9503338
child 2643 5e783bc49bd7
equal deleted inserted replaced
2622:c8cd5a866d57 2637:5b524def9b53
    81         """Return a release note URL pointing to the correct release notes
    81         """Return a release note URL pointing to the correct release notes
    82            for this version"""
    82            for this version"""
    83 
    83 
    84         # TBD: replace with a call to api.info() that can return a "release"
    84         # TBD: replace with a call to api.info() that can return a "release"
    85         # attribute of form YYYYMM against the SUNWsolnm package
    85         # attribute of form YYYYMM against the SUNWsolnm package
    86         return "http://www.oracle.com/pls/topic/lookup?ctx=E23824&id=SERNS"
    86         return "https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=REFERENCE&id=1372094.1"
    87 
    87 
    88 def time_to_timestamp(t):
    88 def time_to_timestamp(t):
    89         """convert seconds since epoch to %Y%m%dT%H%M%SZ format"""
    89         """convert seconds since epoch to %Y%m%dT%H%M%SZ format"""
    90         # XXX optimize?
    90         # XXX optimize?
    91         return time.strftime("%Y%m%dT%H%M%SZ", time.gmtime(t))
    91         return time.strftime("%Y%m%dT%H%M%SZ", time.gmtime(t))