Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Jun 1, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions 6 src/oidcmsg/time_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,8 @@ def later_than(after, before):


def utc_time_sans_frac():
return int((datetime.utcnow() - datetime(1970, 1, 1)).total_seconds())
now_timestampt = int(datetime.utcnow().timestamp())
return now_timestampt


def time_sans_frac():
Expand All @@ -372,4 +373,5 @@ def epoch_in_a_while(
"""

dt = time_in_a_while(days, seconds, microseconds, milliseconds, minutes, hours, weeks)
return int((dt - datetime(1970, 1, 1)).total_seconds())
dt_timestamp = int(dt.timestamp())
return dt_timestamp
Morty Proxy This is a proxified and sanitized view of the page, visit original site.