cro-http-datetime

Cro::HTTP::DateTime

Additional sub-module that provides a set of helpers for dealing with date and time in different formats. It mostly works with standard DateTime class.

DateTime parsing

Module exports HTTP-date regular expression, using which string with date and time in three different formats can be parsed.

These formats are: rfc1123, rfc850 and asctime, all of them are described in RFC 2616.

This regular expression should be used only for string checking and all conversion to DateTime should be done using DateTimeGrammar grammar and DateTimeActions class in this manner:

my $str = Sun, '06 Nov 1994 08:49:37 GMT';
my DateTime $time = DateTimeGrammar.parse(, actions => DateTimeActions.new).made;

DateTime Formatting

For formatting a DateTime object to supporting HTTP format, routine rfc1123-formatter can be used. It takes a DateTime objects and returns a Str. Other supported for parsing formats, such as RFC 850 date and time format were marked as obsolete and hence not provided.

cro v0.8.8

Libraries and tools for building reactive services in Raku. This installs the cro command line and web tool, along with HTTP (including HTTPS and HTTP/2.0) and WebSocket support.

Authors

  • Jonathan Worthington

License

Artistic-2.0

Dependencies

IO::Socket::Async::SSLJSON::FastMETA6Shell::CommandFile::FindTerminal::ANSIColorOO::MonitorsYAMLishCro::WebSocket:ver<0.8.8>Docker::FileFile::Ignore

Test Dependencies

Provides

  • Cro::Tools::CLI
  • Cro::Tools::CroFile
  • Cro::Tools::Link::Editor
  • Cro::Tools::LinkTemplate
  • Cro::Tools::LinkTemplate::HTTP
  • Cro::Tools::LinkTemplate::HTTPS
  • Cro::Tools::LinkTemplate::WS
  • Cro::Tools::LinkTemplate::WSS
  • Cro::Tools::Runner
  • Cro::Tools::Serve
  • Cro::Tools::Services
  • Cro::Tools::Template
  • Cro::Tools::Template::Common
  • Cro::Tools::Template::HTTPService
  • Cro::Tools::Template::ReactReduxSPA
  • Cro::Tools::Template::ZeroMQWorkSinkService
  • Cro::Tools::Template::ZeroMQWorkerService
  • Cro::Tools::TemplateLocator
  • Cro::Tools::Web

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.