Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sergot/datetime-parse

DateTime::Parse
https://github.com/sergot/datetime-parse

Last synced: 5 days ago
JSON representation

DateTime::Parse

Awesome Lists containing this project

README

        

DateTime::Parse
===================

DateTime parser.

[![test](https://github.com/sergot/datetime-parse/actions/workflows/test.yml/badge.svg)](https://github.com/sergot/datetime-parse/actions/workflows/test.yml)

Synopsis
===================

my $rfc1123 = DateTime::Parse.new('Sun, 06 Nov 1994 08:49:37 GMT');
say $rfc1123.Date;

say DateTime::Parse.new('Sun', :rule) + 1; # 7th day of week

Description
==================

- new( $format, $rule )
- $format : String with DateTime to be parsed
- $rule : Rule to run