This repository has been archived by the owner. It is now read-only.
Perl 6 module to deal with W3CDTF dates (ABANDONED!)
Switch branches/tags
Nothing to show
Clone or download
Latest commit 086b5b2 Jan 8, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/DateTime/Format Add unit declarator to class declarations May 21, 2015
t Fix failing tests May 7, 2016
.gitignore Fix failing tests May 7, 2016
.travis.yml Add Travis-CI configuration Oct 28, 2016
META6.json Use modern META filename Apr 25, 2017
README Update README Jan 8, 2018

README

***
I'm sorry, but this module is not supported anymore since I have little
interest in Perl 6. Feel free to create a fork.
***

NAME

DateTime::Format::W3CDTF - A Perl 6 module to deal with W3CDTF dates.

SYNOPSYS

    use DateTime::Format::W3CDTF;
    
    my $w3c = DateTime::Format::W3CDTF.new;
    my DateTime $datetime = $w3c.parse('2012-09-04T11:22:33.5+04:00');
    say $w3c.format($datetime);
    

DESCRIPTION

A Perl 6 module to deal with W3CDTF dates.

METHODS

  parse(Str $date) of DateTime

Parses the string with W3C-formatted date and returns DateTime object. Throws an exception in case of errors.

  format(DateTime $date) of String

Converts DateTime object to the W3C-formatted date string. Throws an exception in case of errors.

AUTHOR

Alexandr Alexeev, <eax at cpan.org> (https://eax.me/)

COPYRIGHT

Copyright 2012 Alexandr Alexeev

This program is free software; you can redistribute it and/or modify it under the same terms as Rakudo Perl 6 itself.