Hacker News new | ask | show | jobs
by swrobel 161 days ago
Yeah, P30D as presumably intuitive to non-technical users has me chuckling

Also, knowing that TODAY > signup + P30D transpiles to TODAY > signup + 30.days in Ruby. Which one is more readable?

2 comments

Point taken. Will see what I can do.

Probably TODAY + Duration({ days: 30 }) would be a better example then.

Is this even valid ruby? Doesn't it need Rails-specific Active Support to work?