15 Sep 2011 20:05:49 UTC
- Distribution: Date-Say-Czech
- Module version: 0.05
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (164 / 0 / 0)
- KwaliteeBus factor: 0
- % Coverage
- License: unknown
- Activity24 month
- Download (12.57KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
Date::Say::Czech - Outputs dates as text as you would speak it
use Date::Say::Czech; print time_to_say(time()); print date_to_say($DAY, $MONTH, $YEAR); print day_to_say($DAY); print month_to_say($MONTH); print year_to_say($YEAR);
This module provides functions to easily convert a date (given as either integer values for a day, a month and a year or as a unix timestamp) into the Czech text representation, like you would read it aloud.
Please, put correct args to all functions, otherwise there is no guarantee what the result will be.
In the scalar context, returns a string consisting of the text representation of the date in given unix timestamp, like e.g. "dvacátého pátého června dva tisíce pět".
In list context, returns the three words of the string as the list.
- date_to_say($DAY, $MONTH, $YEAR)
Takes the values for a day of a month, a month and a year as integers (month starting with 1) and translates them into the Czech text representation.
Converts a day number to its Czech text representation.
Converts a month number (January = 1 etc.) to its Czech text representation.
Converts a year number to its Czech text representation.
Please report all bugs to the author of this module: Jiri Vaclavik <my name dot my last name at gmail dot com>Mail a Bug
Jiri Vaclavik <my name dot my last name at gmail dot com>
Date::Spoken::German from Christian Winter
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 320:
Non-ASCII character seen before =encoding in '"dvacátého'. Assuming UTF-8
Module Install Instructions
To install Date::Say::Czech, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Date::Say::Czech
For more information on module installation, please visit the detailed CPAN module installation guide.