Skip to content

Instantly share code, notes, and snippets.

@gonzalo123
Created April 6, 2014 15:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gonzalo123/10007768 to your computer and use it in GitHub Desktop.
Save gonzalo123/10007768 to your computer and use it in GitHub Desktop.
Kata Katayuno Abril Bilbao sin TDD
<?php
echo (new \DateTime())->diff(\DateTime::createFromFormat('Y-m-d H:i:s', json_decode((new Guzzle\Http\Client('http://karmacracy.com'))->get('/api/v1/user/gonzalo123')->send()->getBody(), true)['data']['user'][0]['date_signed']))->format('%y') . "year/s old";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment