Skip to content

Instantly share code, notes, and snippets.

@madhurranjan
Created December 8, 2013 07:17
Show Gist options
  • Save madhurranjan/7854255 to your computer and use it in GitHub Desktop.
Save madhurranjan/7854255 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
$
require 'json'
require 'date'
$
d = DateTime.now
time_date = {"time" => DateTime.now }
print time_date.to_json
Run as
ansible/hacking/test-module -m ./tests/time.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment