Skip to content

Instantly share code, notes, and snippets.

View mariomelofilho's full-sized avatar

Mário Melo Filho mariomelofilho

  • @zenqms.com
  • São Paulo, Brazil
  • 17:59 (UTC -03:00)
View GitHub Profile
from datetime import datetime, timedelta
def to_timestamp(timestamp):
timestamp = float(timestamp[0])
seconds_since_epoch = timestamp/10**7
loc_dt = datetime.fromtimestamp(seconds_since_epoch)
loc_dt -= timedelta(days=(1970 - 1601) * 365 + 89)
return loc_dt
@berlic
berlic / playbook.yml
Created July 25, 2017 08:01
yaml combine
---
- hosts: localhost
gather_facts: no
vars:
config_files:
- test1
- test2
tasks:
- name: Load config defaults
include_vars: