The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Python Date and Time Examples: ISO Format

TODO: Pull subtitle into page object code_start_default_section code_end_default_section

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Python Date and Time Examples: ISO Format

Note, these don't include time zones

-- code/
-- python

from datetime import datetime

now = datetime.now()

# with millilsecond
print(now.isoformat())


# without milliseconds
print(now.isoformat('T', 'seconds'))

-- /code

-- ref
-- title: Python 3 strftime() Docs
-- url: https://docs.python.org/3/library/datetime.html?highlight=strftime#strftime-and-strptime-behavior

-- categories
-- Python 

-- metadata
-- date: 2020-11-12 10:28:41
-- id: 01epyh5d
-- status: published
-- type: post
-- site: aws