yymmdd

Tiny DSL for idiomatic date parsing and formatting in Ruby (by sshaw)

Yymmdd Alternatives

Similar projects and alternatives to yymmdd

  1. asdf

    392 yymmdd VS asdf

    Extendable version manager with support for Ruby, Node.js, Elixir, Erlang & more

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. mise

    143 yymmdd VS mise

    dev tools, env vars, task runner

  4. view_component

    A framework for building reusable, testable & encapsulated view components in Ruby on Rails.

  5. githut

    64 yymmdd VS githut

    Github Language Statistics

  6. Opal

    39 yymmdd VS Opal

    Ruby ♥︎ JavaScript

  7. ruby-build

    A tool to download, compile, and install Ruby on Unix-like systems.

  8. vite_ruby

    ⚡️ Vite.js in Ruby, bringing joy to your JavaScript experience

  9. Recurrence

    A simple library that handles recurring events.

  10. biz

    0 yymmdd VS biz

    Time calculations using business hours.

  11. inertia-rails

    The Rails adapter for Inertia.js.

  12. plb2

    A programming language benchmark

  13. ByStar

    1 yymmdd VS ByStar

    Lets you find ActiveRecord + Mongoid objects by year, month, fortnight, week and more!

  14. Chronic

    5 yymmdd VS Chronic

    Chronic is a pure Ruby natural language date parser.

  15. business_time

    Support for doing time math in business hours and days

  16. time-lord

    time-lord is a ruby gem that adds extra functionality to the time class.

  17. fugit

    1 yymmdd VS fugit

    time tools (cron, parsing, durations, ...) for Ruby, rufus-scheduler, and flor

  18. rubywm

    4 yymmdd VS rubywm

    An X11 window manager in pure Ruby

  19. rbs-inline

    Inline RBS type declaration

  20. groupdate

    2 yymmdd VS groupdate

    The simplest way to group temporal data

  21. protos

    2 yymmdd VS protos

    A UI component library built with Phlex, Tailwindcss, and daisyUI

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better yymmdd alternative or higher similarity.

yymmdd discussion

Log in or Post with

yymmdd reviews and mentions

Posts with mentions or reviews of yymmdd. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-12-25.
  • Ruby 3.4.0 Released
    15 projects | news.ycombinator.com | 25 Dec 2024
    The language is incredibly flexible and allows for "DSLs" that are just ruby libraries.

    A simple example: `3.days.ago` is a very commonly used idiom in Rails projects. Under the hood, it extends the base Number class with `def days` to produce a duration and then extends duration with `def ago` to apply the duration to the current time.

    Taking that concept to a bigger extreme is this mostly unnecessary library: https://github.com/sshaw/yymmdd

    `yyyy-mm-dd(datestr)` will parse a date str that matches yyyy-mm-dd format. It looks like a special DSL, but it's just Ruby. `dd(datestr)` produces a `DatePart`. Then it's just operator overloading on subtraction to capture the rest of the format and return the parsed date.

    That library feels unnecessary, but the entire thing is 100 lines of code. The ease of bending the library to fit a use case led to a very rich ecosystem. The challenge is consistency and predictability, especially with a large team.

  • Ruby has some pretty obscure syntax and operators that allow you to write nonsense like this.
    2 projects | /r/ruby | 15 Apr 2022
    Also see: - https://github.com/sshaw/yymmdd - https://github.com/sshaw/angry_raise

Stats

Basic yymmdd repo stats
2
77
0.0
about 12 years ago

sshaw/yymmdd is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of yymmdd is Ruby.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com