<gh_stars>10-100
from datetime import datetime, timedelta, timezone

tz_utc_8 = timezone(timedelta(hours=8))


def GetNowTimeHour():
    return datetime.now(tz=tz_utc_8).hour


def GetNowTime():
    return datetime.now(tz=tz_utc_8)


def GetFormattedNowTime():
    return datetime.now(tz=tz_utc_8).strftime('%Y-%m-%d %H:%M:%S')


def GetTimeStamp():
    return (int)(datetime.now(tz=tz_utc_8).timestamp())


def TimeStampToString(timestamp):
    return datetime.fromtimestamp(timestamp)


def GetNowTimeFileName():
    return datetime.now(tz=tz_utc_8).strftime('%Y/%m/%d.log')
from datetime import datetime, timedelta, timezone

tz_utc_8 = timezone(timedelta(hours=8))


def GetNowTimeHour():
    return datetime.now(tz=tz_utc_8).hour


def GetNowTime():
    return datetime.now(tz=tz_utc_8)


def GetFormattedNowTime():
    return datetime.now(tz=tz_utc_8).strftime('%Y-%m-%d %H:%M:%S')


def GetTimeStamp():
    return (int)(datetime.now(tz=tz_utc_8).timestamp())


def TimeStampToString(timestamp):
    return datetime.fromtimestamp(timestamp)


def GetNowTimeFileName():
    return datetime.now(tz=tz_utc_8).strftime('%Y/%m/%d.log')