Programming language cook book

From Review or Discard at Will
Revision as of 08:13, 27 August 2015 by Jeffa (talk | contribs) (Initial creation)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Mostly just for me to remember stuff


I wanted a json utc datetime for a MQTT payload. Found the arrow module that is much like moment.js for javascript.

import arrow
print (arrow.get(arrow.utcnow()).for_json()


display unformated like code snippets

<source lang="text"> code snippet </source>