David F. Houghton > App-JobLog-1.030 > App::JobLog::Config

Download:
App-JobLog-1.030.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 1.030   Source   Latest Release: App-JobLog-1.031

NAME ^

App::JobLog::Config - central depot for App::JobLog configuration parameters and controller allowing their modification

VERSION ^

version 1.030

DESCRIPTION ^

App::JobLog::Config is a central repository for program state that may be conserved from session to session. It also serves as a general interface between the program and the machine.

This wasn't written to be used outside of App::JobLog.

METHODS ^

init_file

init_file manages configuration files. It ensures that the working directory and the README file exist before we try to create or modify any files in the working directory.

dir

Working directory.

log

Log file.

readme

README file.

vacation

Obtain the file in which vacation information is stored.

precision

Obtain the number of decimal places represented when displaying the duration of events.

day_length

The number of hours one is expected to work in a day.

pay_period_length

The number of days between paychecks.

sunday_begins_week

Whether to regard Sunday or Monday as the first day in the week when interpreting time expressions such as 'last week'. DateTime uses Monday. The default for App::JobLog is Sunday. For the purposes of calculating hours worked this will make no difference for most people.

start_pay_period

Returns DateTime representing start date of pay period or null if none is defined.

editor

Log editing program.

columns

The number of columns available in the terminal. This defaults to 76 when Term::ReadKey is unable to determine terminal width.

workdays

The days of the week when one expects to be working.

is_workday

Returns whether a particular DateTime object represents a workday.

hidden_columns

Returns those columns never displayed by summary command.

is_hidden

Whether a particular column is among those hidden.

time_zone

Time zone used for time calculations.

AUTHOR ^

David F. Houghton <dfhoughton@gmail.com>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2011 by David F. Houghton.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: