Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

eshiled-new / audit_2021

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • audit_2021
  • test01.py
  • 杨林龙's avatar
    优化审计脚本 · 50605749
    杨林龙 committed Jul 06, 2023
    50605749 Browse Files
test01.py 477 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
import time


def getCsvname():
    local_time = time.localtime()
    # %04d-%02d-%02d %02d:%02d:%02d
    strTime = "%04d%02d%02d%02d%02d%02d" % (
        local_time.tm_year,
        local_time.tm_mon,
        local_time.tm_mday,
        local_time.tm_hour,
        local_time.tm_min,
        local_time.tm_sec,
    )
    return strTime


if __name__ == "__main__":
    if " - " == "-":
        print("true")
    strTime = getCsvname()
    print("strTime", strTime)
# end main