Snippets tagged datetime

  • Friendly date formatting

    Generates a friendly string describing a date relatively to the current date and time. The function returns strings like "2 secs ago", "yesterday" or "3 years ago".

    38 people like this

    Posted: 6 years ago by Tomas Petricek

  • Human Date

    Datetime Readable for Humans, Ported from Clojure https://github.com/pmn/noir-messageboard/blob/master/src/noir_messageboard/utils/utils.clj

    25 people like this

    Posted: 5 years ago by christophd

  • Generate a date range sequence (alternative)

    Generates a sequence of dates (ascending or descending), incrementing (or decrementing) by one day at a time, inclusive of the start and end dates. This is just simpler alternative version of: http://www.fssnip.net/oS (which was password-protected)

    2 people like this

    Posted: 2 years ago by Tuomas Hietanen