The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Labyrinth::DTUtils - Date & Time Utilities for Labyrinth

SYNOPSIS

  use Labyrinth::DTUtils;

DESCRIPTION

Various date & time utilities.

EXPORT

everything

FUNCTIONS

DaySelect($opt,$blank)

Provides a Day dropdown selection box.

The option $opt allows the given day (numerical 1 - 31) to be the selected option in the dropdown. If blank is true, a 'Select Day' option is added as the first option to the dropdown.

MonthSelect($opt,$blank)

Provides a Month dropdown selection box.

The option $opt allows the given month (numerical 1 - 12) to be the selected option in the dropdown. If blank is true, a 'Select Month' option is added as the first option to the dropdown.

YearSelect($opt,$range,$blank,$dates)

Provides a Year dropdown selection box.

The option $opt allows the given month (numerical 1 - 12) to be the selected option in the dropdown. If blank is true, a 'Select Month' option is added as the first option to the dropdown.

If is specified, then the following criteria is used:

  0 - default
  1 - given dates, see $dates list
  2 - oldest year to current year
  3 - current year to future year

For oldest year, this is determined by the configuration setting 'year_past_offset' or 'year_past'. For the future year, this is determined by the configuration setting 'year_future_offset'.

If the range is set to 1, the list of dates given in the $dates array reference will be used.

PeriodSelect($opt,$blank)

Provides a Period dropdown selection box.

The option $opt allows the given period to be the selected option in the dropdown. If blank is true, a 'Select Period' option is added as the first option to the dropdown.

Current valid periods are:

  opt           value
  -------------------
  evnt-month    Month
  evnt-week     Week
  evnt-day      Day

Date Formatting

formatDate
unformatDate
isMonth

SEE ALSO

  Time::Local
  Labyrinth

AUTHOR

Barbie, <barbie@missbarbell.co.uk> for Miss Barbell Productions, http://www.missbarbell.co.uk/

COPYRIGHT & LICENSE

  Copyright (C) 2002-2015 Barbie for Miss Barbell Productions
  All Rights Reserved.

  This module is free software; you can redistribute it and/or
  modify it under the Artistic License 2.0.