sunshine@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 7 days agoI'm new to using Ruby and this tickled me pinkimagemessage-square93linkfedilinkarrow-up1294arrow-down18cross-posted to: programmer_humor@programming.dev
arrow-up1286arrow-down1imageI'm new to using Ruby and this tickled me pinksunshine@lemmy.ml to Programmer Humor@lemmy.mlEnglish · 7 days agomessage-square93linkfedilinkcross-posted to: programmer_humor@programming.dev
minus-squareDaniel Quinn@lemmy.calinkfedilinkEnglisharrow-up12·7 days agofrom datetime import datetime from dateutil.relativedelta import relativedelta print(datetime.now() + relativedelta(years=10)) # 2035-08-24 12:02:49.795177
from datetime import datetime from dateutil.relativedelta import relativedelta print(datetime.now() + relativedelta(years=10)) # 2035-08-24 12:02:49.795177
Didn’t know about
relativedelta
. Thanks!