Jonkman Microblog
  • Login
Show Navigation
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Alex (avolkov@mastodon.xyz)'s status on Wednesday, 26-Sep-2018 16:46:41 EDT Alex Alex

    TIL Python 3.7 datetime class has a method fromisoformat, that lets you convert ISO 8601 date string straight to datetime object.

    https://docs.python.org/3/library/datetime.html#datetime.date.fromisoformat

    Since toJson method emits dates in this format, this notation is pretty much universal, and in Python 3.7 no imports or custom parsers required to handle it.

    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toJSON

    In conversation Wednesday, 26-Sep-2018 16:46:41 EDT from mastodon.xyz permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.

Switch to desktop site layout.