Calendar-Schedule

 view release on metacpan or  search on metacpan

ChangeLog  view on Meta::CPAN

 - fixing a testing issue on Windows in t/t02.t (thanks to CPAN testers)
   (single quote in argv is printed in Windows, removed)

1.19 Tue Nov 10 06:54:28 AST 2020
 - addressing some issues reported by testers, thanks to Alexandr Ciornii
   1. use of uninitialize value in comparisons, lines 1386 and 1208
   2. issue with Windows behaviour (spliting CL arguments within quotes)

1.18 Sun Nov  8 15:33:57 AST 2020
 - fixing bug in test t/02.t; added an option to bin/cal2html to make
   the test independent of locale and the current date
 - added option --ColLabel to cal2html to specify column label
 - test t/02.t now uses "cal2html --ColLabel='weekday %w'" to avoid depending
   on local weekday names, and the current time

1.17 Sat Nov  7 10:16:22 AST 2020
 - thanks to Gabor Szabo for GitHub PR to add files for CI
 - thanks to Slaven Rezic for reporting the bug re locale
   The bug is fixed by setting LC_ALL=C just for test t/02.t
 - documentation improvements

1.16 Fri Nov  6 15:50:06 AST 2020
 - add script bin/cal2html to EXE_FILES in Makefile.PL

1.15 Fri Nov  6 15:29:10 AST 2020
 - documentation improvements, minor fixes of the README file

1.14 Fri Nov  6 14:43:54 AST 2020

ChangeLog  view on Meta::CPAN

   that 'require "t/test-lib.pl";' works

1.11 Fri Jul 17 17:10:35 ADT 2020
 - documentation improvements
 - trying to make test more portable, replacing %u with %w

1.10 Fri Jul 17 08:18:19 ADT 2020
 - documentation improvements
 - thanks to Mohammad S Anwar for PR regarding license
 - added LICENSE
 - fixing bug: t/01.t depended on locale due to the weekday name,
   replace it with "Week day 1", "Week day 2", etc.;
   thanks to Slaven Rezic for reporting the bug
 - thanks to David Cross for help with Meta CPAN documentation

1.09 Thu Jul 16 09:16:35 ADT 2020
 - fixing bug: adding t/test-lib.pl to MANIFEST
 - thanks to Claudio Fantinouli for reporting bug

1.08 Thu Jul 16 06:47:58 ADT 2020
 - documentation improvements

t/01-example1  view on Meta::CPAN

#!/usr/bin/perl
#use Calendar::Schedule;

my $cal = Calendar::Schedule->new();
#$cal->{ColLabel} = "%A"; # use only day of the week as the column label
#$cal->{ColLabel} = "Week day %u";  # We cannot use %A for testing purposes
                          # since it # depends on the current locale setting
$cal->{ColLabel} = "weekday %w"; # %u is also not portable, it seems; trying %w

# Example meetings with overlaps
$cal->add_entries(<<'EOT');
Mon 15:30-16:30 Teaching (CSCI 3136)
Tue 10-11:30 Teaching (ECMM 6014)
Wed 13:30-14:30 DNLP
Wed 15:30-16:30 Teaching (CSCI 3136)
Thu 10-11:30 Teaching (ECMM 6014)
Thu 16-17 WIFL



( run in 1.183 second using v1.01-cache-2.11-cpan-ceb78f64989 )