Skip to content

strftime("%s") fails on windows #10

@ekkah

Description

@ekkah

master d2067e4
strftime("%s") does not work on my windows using python 3.12.1
cols.append("%s" % datetime.datetime.strptime(cols[0], "%Y-%m-%d").strftime("%s"))

this snippet works fine on both linux and windows
date_obj = datetime.datetime.strptime(cols[0], "%Y-%m-%d")
timestamp = int(date_obj.timestamp())
cols.append(str(timestamp))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions