Help for this page

Select Code to Download


  1. or download this
    $timeTO->getDate();
    $timeTO->getTime();
    
  2. or download this
    package TimeBO;
    
    ...
    sub getTimeTO { &{ $_[0] }("TIMETO"); }
    
    1;
    
  3. or download this
    #!/usr/bin/perl
    
    ...
    
    is( $timeTO->getDate() , $today->ymd(), "It's $today");
    is( $timeTO->getTime() , $today->hms(), "It's $today");
    
  4. or download this
    package TimeTO;
    
    ...
    sub getTime { &{ $_[0] }("TIME") }
    
    1;
    
  5. or download this
    #!/usr/bin/perl
    
    ...
    
    $timeTO->setTime( $today->hms() );
    is( $timeTO->getTime(), $today->hms(), "it's $today");
    
  6. or download this
    #!/usr/bin/perl -wT
    
    ...
          $page->h1( "The current time is" ),
          $page->p( $timeTO->getTime() ),
          $page->end_html();