idmtools.utils.time module

Timestamp function.

Copyright 2021, Bill & Melinda Gates Foundation. All rights reserved.

idmtools.utils.time.timestamp(time=None)[source]

Return a timestamp.

Parameters:

time – A time object; if None provided, use now.

Returns:

A string timestamp in UTC, format YYYYMMDD_HHmmSS.