Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
tuple() -> empty tuple
tuple(iterable) -> tuple initialized from iterable's items

If the argument is a tuple, the return value is the same object.

src/k/a/karesansui-HEAD/karesansui/lib/log/viewer.py   karesansui(Download)
  from sha import sha
 
from karesansui.lib.const import DEFAULT_DATE_FORMAT, LOG_SYSLOG_REGEX, LOG_EPOCH_REGEX
from karesansui.lib.utils import reverse_file
 
    time_format = log_config["time_format"]
    if start_datetime:
        start_datetime = time.strptime(start_datetime, DEFAULT_DATE_FORMAT[3])
        if time_format == "syslog":
            start_datetime = datetime.datetime.fromtimestamp(time.mktime(start_datetime)).timetuple()
    if end_datetime:
        end_datetime = time.strptime(end_datetime, DEFAULT_DATE_FORMAT[3])