Open in app
Cing Sian Dal
41 Followers
About

Sign in

41 Followers
About
Open in app

Python: Convert DateTime to AWSTimestamp

Cing Sian Dal

Cing Sian Dal

Apr 18, 2020·1 min read

Here is the code

import datetime
t = str(datetime.datetime.now())[:-3].replace(" ", "T") + "Z"
print(t) #2020-04-18T04:25:03.038Z

Written by

Cing Sian Dal

Don’t follow me. I wrote junks here. Follow me on Twitter instead.

  • Python
  • Awstimestamp
  • Dynamodb
  • Amplify
  • Appsync

More from Cing Sian Dal

Don’t follow me. I wrote junks here. Follow me on Twitter instead.

More From Medium

Developers Should Be (a Little Bit) Reckless

Tom Feron in Better Programming

How I used DynamoDB as a long-term cache layer for AppSync

Benoît Bouré

Why Platform Software Development is so Hard

Thomas Derave

Build a Tool-Agnostic CI/CD Flow With GitHub Actions

Victoria Drake in Better Programming

More than Coding: What Students Really Learn from Computer Science

Hsuanwei Fan in Edmodo

4 things that every development team need to mind

Amir Yousefi in The Startup

Mimic Discriminated Union Types in C# with serialization via System.Text.Json

Max Koverdyaev

8 Great Ideas for Programming Projects That People Will Use

Filipe Silva in Better Programming

About

Help

Legal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store