Skip to content

Instantly share code, notes, and snippets.

@abrookins
Created August 7, 2020 00:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abrookins/ffa0c5a7af818a9cd1f7271bf4a9f416 to your computer and use it in GitHub Desktop.
Save abrookins/ffa0c5a7af818a9cd1f7271bf4a9f416 to your computer and use it in GitHub Desktop.
In [3]: import datetime
In [4]: now = datetime.datetime.now()
In [5]: stats = SiteStats(last_reporting_time=now, meter_reading_count=5, max_wh_generated=22, min_wh_generated=1, max_capacity=100)
In [6]: stats
Out[6]: SiteStats(last_reporting_time=datetime.datetime(2020, 7, 31, 15, 8, 45, 109063), meter_reading_count=5, max_wh_generated=22, min_wh_generated=1, max_capacity=100)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment