Stop Using Utcnow and Utcfromtimestamp

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • Pendulum

    Python datetimes made easy

  • Yes, the datetime api once timezone is involved is quite bad in python.

    This is why for anything that uses timezone, I use pendulum: https://pendulum.eustace.io/

    It's compatible with the datetime api, but it has sane default, nice tools to convert between timezone, some cool date adjustment stuff, and can humanize time in several languages.

    Basically, datetime has the same problem as text vs raw bytes in python 2.7, except it has never been fixed.

  • Pylint

    It's not just a linter that annoys you!

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • forbidden-apis

    Policeman's Forbidden API Checker

  • > All this stuff would be a lot easier if timezones always had to be stated explicitly.

    On Java, you can use the forbidden-apis build plugin (https://github.com/policeman-tools/forbidden-apis) to fail the build whenever a timezone or locale or charset is not specified explicitly (it forbids the methods from the Java API which use an implicit timezone/locale/charset). I don't know whether there's something similar for Python; it might be harder because Python is much more dynamic (though it might be possible to use monkeypatching to warn whenever the bad methods are used).

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • W1203: logging-fstring-interpolation (Solved)

    1 project | dev.to | 21 Jan 2024
  • Enhancing Python Code Quality: A Comprehensive Guide to Linting with Ruff

    5 projects | dev.to | 12 Jul 2023
  • Even the Pylint codebase uses Ruff

    1 project | /r/patient_hackernews | 5 Mar 2023
  • Even the Pylint codebase uses Ruff

    1 project | /r/hackernews | 5 Mar 2023
  • Even the Pylint codebase uses Ruff

    1 project | /r/hypeurls | 5 Mar 2023