current time as timestamp python

just current time as timestamp

import re
from datetime import datetime
def gettimestamp():
    return re.sub(r'[\-\:T\.]', '_', datetime.now().isoformat())