File: f025.t

package info (click to toggle)
libdate-pcalc-perl 6.1-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 1,856 kB
  • ctags: 619
  • sloc: perl: 16,706; ansic: 3,083; sh: 14; makefile: 4
file content (21 lines) | stat: -rw-r--r-- 562 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!perl -w

BEGIN { eval { require bytes; }; }
use strict;
no strict "vars";

use Date::Pcalc qw( Week_of_Year Monday_of_Week );

# ======================================================================
#   ($week,$year) = Week_of_Year($year,$mm,$dd);
#   ($year,$mm,$dd) = Monday_of_Week($week,$year);
# ======================================================================

print "1..1\n";

$n = 1;
($year,$mm,$dd) = Monday_of_Week(Week_of_Year(1996,6,26));
if (($year==1996)&&($mm==6)&&($dd==24)) {print "ok $n\n";} else {print "not ok $n\n";}
$n++;

__END__