We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5825d81 + 93bae64 commit c0a4e71Copy full SHA for c0a4e71
src/smexperiments/_utils.py
@@ -12,7 +12,7 @@
12
# language governing permissions and limitations under the License.
13
import os
14
import random
15
-import time
+from datetime import datetime
16
17
import boto3
18
import botocore
@@ -44,7 +44,7 @@ def boto_session():
44
def suffix():
45
"""Generate a random string of length 4"""
46
alph = "abcdefghijklmnopqrstuvwxyz"
47
- return "-".join([time.strftime("%Y-%m-%d-%H%M%S"), "".join(random.sample(alph, 4))])
+ return "-".join([datetime.utcnow().strftime("%Y-%m-%d-%H%M%S%f"), "".join(random.sample(alph, 4))])
48
49
50
def name(prefix):
0 commit comments