Jiří Václavík > Date-Say-Czech-0.04 > Date::Say::Czech

Download:
Date-Say-Czech-0.04.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.04   Source  

NAME ^

Date::Say::Czech - Output dates as text as you would speak it

SYNOPSIS ^

 use Date::Say::Czech;

 print time_to_say(time());
 print date_to_say($DAY, $MONTH, $YEAR);

DESCRIPTION ^

This module provides you with functions to easily convert a date (given as either integer values for day, month and year or as a unix timestamp) to its representation as czech text, like you would read it aloud.

EXPORTABLE TAGS ^

:ALL - all helper methods are also exported into the callers namespace

FUNCTIONS ^

Exported by default

time_to_say($TIMESTAMP)

In scalar context, return a string consisting of the text representation of the date in the 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 a list.

date_to_say($DAY, $MONTH, $YEAR)

Takes the values for day of month, month and year as integers (month starting with 1) and gives the same return values as time_to_say.

Exported by :ALL

year_to_say($YEAR)

Takes a year (absolute integer value) as input and returns the text representation in Czech.

month_to_speak($MONTH)

Takes a month (integer value, January = 1) as input and returns the text representation in Czech.

day_to_say($DAY)

Converts a day number to its Czech text representation.

BUGS ^

Please report all bugs to the author of this module: Jiri Vaclavik <jiri.vaclavik@NOSPAMgmailNOSPAM.com>

Mail a Bug

AUTHOR ^

Jiri Vaclavik <jiri.vaclavik@NOSPAMgmailNOSPAM.com>

SEE ALSO ^

Date::Spoken::German from Christian Winter