Skip to content

Instantly share code, notes, and snippets.

@cooniur
Last active March 22, 2016 00:20
Show Gist options
  • Select an option

  • Save cooniur/72bd153b4df842a75c9a to your computer and use it in GitHub Desktop.

Select an option

Save cooniur/72bd153b4df842a75c9a to your computer and use it in GitHub Desktop.
Ansible Datetime
{
"ansible_date_time": {
"date": "2015-04-20",
"day": "20",
"epoch": "1429565280",
"hour": "14",
"iso8601": "2015-04-20T21:28:00Z",
"iso8601_micro": "2015-04-20T21:28:00.106961Z",
"minute": "28",
"month": "04",
"second": "00",
"time": "14:28:00",
"tz": "PDT",
"tz_offset": "-0700",
"weekday": "Monday",
"year": "2015"
}
}
{
"ansible_date_time": {
"date": "2016-03-22",
"day": "22",
"epoch": "1458606029",
"hour": "00",
"iso8601": "2016-03-22T00:20:29Z",
"iso8601_basic": "20160322T002029004500",
"iso8601_basic_short": "20160322T002029",
"iso8601_micro": "2016-03-22T00:20:29.004577Z",
"minute": "20",
"month": "03",
"second": "29",
"time": "00:20:29",
"tz": "UTC",
"tz_offset": "+0000",
"weekday": "Tuesday",
"weekday_number": "2",
"weeknumber": "12",
"year": "2016"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment