Skip to content

Instantly share code, notes, and snippets.

@ross-nordstrom
Created October 9, 2015 02:09
Show Gist options
  • Save ross-nordstrom/8bbe8b4ceea86afc0894 to your computer and use it in GitHub Desktop.
Save ross-nordstrom/8bbe8b4ceea86afc0894 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
import json
from datetime import datetime
data = {}
now = datetime.now()
data['general_state'] = 1
data['year'] = now.year
data['month'] = now.month
data['day'] = now.day
data['hour'] = now.hour
data['minute'] = now.minute
print json.dumps(data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment