Skip to content

Commit

Permalink
update epoch_now
Browse files Browse the repository at this point in the history
  • Loading branch information
SeaBlooms committed Oct 23, 2024
1 parent 24f8f67 commit 2f92c09
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions examples/examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import random
import time
import os
from datetime import datetime

account = os.environ.get("JUPITERONE_ACCOUNT")
token = os.environ.get("JUPITERONE_TOKEN")
Expand Down Expand Up @@ -135,8 +134,7 @@
rand_val_range = [x / 10.0 for x in range(0, 100)]
rand_val = random.choice(rand_val_range)

now_dt = datetime.now()
epoch_now = round(datetime.strptime(str(now_dt), "%Y-%m-%d %H:%M:%S.%f").timestamp())
epoch_now = round(time.time() * 1000)

entity_payload = [
{
Expand Down

0 comments on commit 2f92c09

Please sign in to comment.