Skip to content

Commit 2f92c09

Browse files
committed
update epoch_now
1 parent 24f8f67 commit 2f92c09

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

examples/examples.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import random
33
import time
44
import os
5-
from datetime import datetime
65

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

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

141139
entity_payload = [
142140
{

0 commit comments

Comments
 (0)