Johan Van den Brande > Palm-Timesheet > Palm::Timesheet::Utilities

Download:
Palm-Timesheet-0.1.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Source  

NAME ^

Palm::Timesheet::Utilities - Helper methods for the Timesheet package.

DESCRIPTION ^

This package contains some helper methods that are used throughout the different modules.

METHODS ^

1. ($hour, $min) = record_to_hour_min( $hourminrecord )

Convert a time record to the hour and minutes it contains. The format is:

        |7654|3210|
        |min |hour|

        minutes = 5 * min
2. $hourminrecord = hour_min_to_record( $hour, $min )

Convert the time ( hour and minutes ) to the PDB format.

3. ( $transarrayref, $namesarrayref ) = crack_categories( $categories, $len)

Return a reference to an array containing the translation table and a reference to an array containing the names of the categories. The parameters are the category record and the amount of categories in that record.

4. $categories = encode_categories( $transarrayref, $namesarrayref )

Create a PDB record to contain the categories. The transtable needs to build somewhere else. This will probably be done in the package for that category

COPYRIGHT ^

Copyright (c) 2001, Johan Van den Brande. All Rights Reserved. This module is free software. It may be used, redistributed and/or modified under the same terms as Perl itself.