DateTime Format Natural 0.7 Perl script

SPONSORED LINKS

    Specification

  • Version: 0.7
  • File size: 0 KB
  • File name: DateTime-Format-Natural-0.70.tar.gz
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: Perl
  • Price:Other Free / Open So
  • Company: Steven Schubiger (View more)

DateTime Format Natural 0.7 script description:



DateTime Format Natural 0.7 is a Perl script for Modules scripts design by Steven Schubiger. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
DateTime Format Natural module consists of a method, parse_datetime, which takes a string with a human readable date/time and creates a machine readable one.

Publisher review:
DateTime Format Natural module consists of a method, parse_datetime, which takes a string with a human readable date/time and creates a machine readable one. DateTime::Format::Natural - Create machine readable date/time with natural parsing logic SYNOPSIS use DateTime::Format::Natural; $parser = DateTime::Format::Natural->new; $dt = $parser->parse_datetime($date_string); @dt = $parser->parse_datetime_duration($date_string); if ($parser->success) { # operate on $dt/@dt, for example: printf("s.s.%4s s:s:s", $dt->day, $dt->month, $dt->year, $dt->hour, $dt->min, $dt->sec); } else { warn $parser->error; }"DateTime::Format::Natural" takes a string with a human readable date/time and creates a machine readable one by applying natural parsing logic. METHODSnewCreates a new "DateTime::Format::Natural" object. Arguments to "new()" are options and not necessarily required. $parser = DateTime::Format::Natural->new( lang => '[en|de]', format => 'mm/dd/yy', prefer_future => '[0|1]' daytime => { morning => 06, afternoon => 13, evening => 20, }, ); - "lang" Contains the language selected, currently limited to "en" (english) & "de" (german). Defaults to '"en"'. - "format" Specifies the format of numeric dates, defaults to '"d/m/y"'. - "prefer_future (experimental)" Turns ambigious weekdays/months to their futuristic relatives. Accepts a boolean, defaults to 0. - "daytime" A hash consisting of specific hours given for peculiar daytimes. Daytimes may be selectively changed. parse_datetimeCreates a "DateTime" object from a human readable date/time string. $dt = $parser->parse_datetime($date_string); $dt = $parser->parse_datetime( string => $date_string, debug => 1, ); - "string" The date string. - "debug" Boolean value indicating debugging mode. If debugging is enabled, each token that is analysed will be output to STDOUT with a trailing newline appended.Returns a DateTime object. parse_datetime_durationCreates one or more "DateTime" object(s) from a human readable date/time string which may contain timespans/durations. 'Same' interface & options as "parse_datetime()", but must be explicitly called in list context. @dt = $parser->parse_datetime_duration($date_string); @dt = $parser->parse_datetime_duration( string => $date_string, debug => 1, );successReturns a boolean indicating success or failure for parsing the date/time string given. errorReturns the error message if the parsing didn't succeed. traceReturns a trace of methods which we're called within the Base class and a summary how often certain units were modified.
Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Related script downloads:

Latest script and internet news

IE 10 for Windows 8, comes with Adobe Flash support

IE 10 for Windows 8, comes with Adobe Flash support

After criticism received at Metro version of Internet Explorer 10 , initially offered no support for Adobe Flash technology, Microsoft has taken measures to correct this problem by working directly with Adobe to integrate the necessary components into the

Posted on: 25 May 2012 10:36 by A. Brown

Windows 8: boot to fast to furious

Windows 8: boot to fast to furious

Last year began to circulate on the Internet videos where Windows 8 systems boot in 7 seconds. Unfortunately, from this performance derives some problems.

Posted on: 25 May 2012 07:28 by A. Brown

Apple prepares iPhone 5 and iOS 6

Apple prepares iPhone 5 and iOS 6

New information coming from some sources close to Apple confirming that the Cupertino giant is testing two different models of iPhone, called internal iPhone5, 1 and iPhone 5.2. Apparently, both devices have a screen of 3.95 inches and a resolution of 113

Posted on: 24 May 2012 08:36 by A. Brown

Windows 8 estimates: 500 million users in 2013

Windows 8 estimates: 500 million users in 2013

Microsoft expects to launch a new wave of optimism with Windows 8. In a recent statement, Steve Ballmer, chief executive at Microsoft, estimates that Windows 8 will reach a total of about 500 million users by the end of 2013.

Posted on: 24 May 2012 08:25 by A. Brown

SPREAD THE WORD

User Rating

DateTime Format Natural
Rating: 3.0 out of 5
Based on 2 ratings. 2 user reviews.

  • Currently 3.00 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5