Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jan 21st, 2018
70
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.21 KB
| None
|
0
0
raw
download
clone
embed
print
report
require 'date'
class Birthday
def how_old_are_you?(date_born)
date_born = DateTime.parse(date_born)
if date_born < DateTime.now
return Time.now.year - date_born.year
end
nil
end
end
Add Comment
Please,
Sign In
to add comment
Public Pastes
sha256
Python | 3 min ago | 5.71 KB
Buble 3
C | 7 min ago | 2.17 KB
Untitled
C# | 16 min ago | 0.75 KB
BubleSorting FASM 2
ASM (NASM) | 17 min ago | 2.30 KB
Setup Docker Volume
PowerShell | 23 min ago | 1.32 KB
Com-port for arduino
C | 47 min ago | 1.31 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 48 min ago | 0.38 KB
Untitled
C# | 52 min ago | 1.32 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!