All Projects → tj → Go Naturaldate

tj / Go Naturaldate

Licence: mit
Natural date/time parsing for Go.

Programming Languages

go
31211 projects - #10 most used programming language
golang
3204 projects

Projects that are alternatives of or similar to Go Naturaldate

When
A natural language date/time parser with pluggable rules
Stars: ✭ 1,113 (+412.9%)
Mutual labels:  date, datetime, natural-language
Time Stamp
Get a formatted timestamp. Used in gulp, assemble, generate, and many others.
Stars: ✭ 104 (-52.07%)
Mutual labels:  date, datetime
Dateparse
GoLang Parse many date strings without knowing format in advance.
Stars: ✭ 1,365 (+529.03%)
Mutual labels:  date, datetime
Dpicker
A framework-agnostic minimal date picker
Stars: ✭ 187 (-13.82%)
Mutual labels:  date, datetime
Rc Datetime Picker
React component for datetime picker by Moment.js
Stars: ✭ 85 (-60.83%)
Mutual labels:  date, datetime
Graphql Java Datetime
GraphQL ISO Date is a set of RFC 3339 compliant date/time scalar types to be used with graphql-java.
Stars: ✭ 89 (-58.99%)
Mutual labels:  date, datetime
Horizontalpicker
DatePicker horizontal con selección smooth por día para Android.
Stars: ✭ 116 (-46.54%)
Mutual labels:  date, datetime
Laydate
layDate(日期与时间组件) 是 layui 独立维护的三大组件之一
Stars: ✭ 1,066 (+391.24%)
Mutual labels:  date, datetime
Tail.datetime
A lightweight, translat- and configurable Open Source DateTime Picker, written in pure vanilla JavaScript!
Stars: ✭ 139 (-35.94%)
Mutual labels:  date, datetime
Delorean
Delorean: Time Travel Made Easy
Stars: ✭ 1,793 (+726.27%)
Mutual labels:  date, datetime
Date
A date and time library based on the C++11/14/17 <chrono> header
Stars: ✭ 2,389 (+1000.92%)
Mutual labels:  date, datetime
Carbon
A simple PHP API extension for DateTime
Stars: ✭ 75 (-65.44%)
Mutual labels:  date, datetime
Iso8601
Ruby parser to work with ISO8601 dateTimes and durations — http://en.wikipedia.org/wiki/ISO_8601
Stars: ✭ 70 (-67.74%)
Mutual labels:  date, datetime
Luatz
Time, Date and Timezone library for lua
Stars: ✭ 92 (-57.6%)
Mutual labels:  date, datetime
Gostradamus
Gostradamus: Better DateTimes for Go 🕰️
Stars: ✭ 148 (-31.8%)
Mutual labels:  date, datetime
Calendar
📅 PHP Date & Time library that solves common problems in object oriented, immutable way.
Stars: ✭ 113 (-47.93%)
Mutual labels:  date, datetime
Tinydate
A tiny (349B) reusable date formatter. Extremely fast!
Stars: ✭ 990 (+356.22%)
Mutual labels:  date, datetime
Zulu
A drop-in replacement for native Python datetimes that embraces UTC.
Stars: ✭ 52 (-76.04%)
Mutual labels:  date, datetime
Anytime
Anything to POSIXct or Date Converter
Stars: ✭ 137 (-36.87%)
Mutual labels:  date, datetime
Date Picker
📅 Custom responsive date picker widget for Android, written in Kotlin.
Stars: ✭ 146 (-32.72%)
Mutual labels:  date, datetime

Go Natural Date

Natural date time parsing for Go. This package was designed for parsing human-friendly relative date/time ranges in Apex Logs' command-line log search.

Examples

Here are some examples of the types of expressions currently supported, arbitrary text is currently ignored.

  • now
  • today
  • yesterday
  • 5 minutes ago
  • three days ago
  • last month
  • next month
  • one year from now
  • yesterday at 10am
  • last sunday at 5:30pm
  • sunday at 22:45
  • next January
  • last February
  • December 25th at 7:30am
  • 10am
  • 10:05pm
  • 10:05:22pm
  • Restart the server in 5 days from now
  • Remind me on the 25th of December at 7:30am
  • Message me in two weeks
  • See the tests for more examples

Direction

A default direction can be applied using WithDirection() for ambiguous expressions such as sunday, or september. By default naturaldate.Past is used, so they will be equivalent to last sunday and last september.


GoDoc

Sponsors

This project is sponsored by CTO.ai, making it easy for development teams to create and share workflow automations without leaving the command line.

And my GitHub sponsors:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].