Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)
Get timestamp of entry.

Argument:

    unixtime: unixtime string
    date_enabled: 'Mon Apr  2 01:00:44 2012' when True
                  (default False '010044')

        def unix2ctime(unixtime, date_enabled=True):
    """Get timestamp of entry.

    Argument:

        unixtime: unixtime string
        date_enabled: 'Mon Apr  2 01:00:44 2012' when True
                      (default False '010044')
    """
    if unixtime:
        if date_enabled:
            # for comment
            timestamp = time.ctime(int(unixtime))
        else:
            # for blog entry.
            # reST file name becomes this value + '.rst'.
            prog = re.compile('\s+')
            t = prog.split(time.ctime(int(unixtime)))[3]
            timestamp = t.replace(':', '')
        return timestamp
        


src/h/a/hatena2rest-0.1.1/_build/lib/hatena2rest/convert.py   hatena2rest(Download)
 
    unixtime = comment_element.find('timestamp').text
    timestamp = utils.unix2ctime(unixtime)
 
    comment = comment_element.find('body').text
                pat_title.search(string).groups())
 
        return (utils.unix2ctime(timestamp, date_enabled=False),
                extract_categories(str_categories), title)
 

src/h/a/hatena2rest-0.1.1/src/hatena2rest/convert.py   hatena2rest(Download)
 
    unixtime = comment_element.find('timestamp').text
    timestamp = utils.unix2ctime(unixtime)
 
    comment = comment_element.find('body').text
                pat_title.search(string).groups())
 
        return (utils.unix2ctime(timestamp, date_enabled=False),
                extract_categories(str_categories), title)