Maplat

 view release on metacpan or  search on metacpan

devscripts/updateClasses.pl  view on Meta::CPAN

# for Magna Powertrain Ilz

use strict;
use warnings;

updateClass('lib/Maplat/Worker.pm', 'lib/Maplat/Worker', 'Maplat::Worker::');
updateClass('lib/Maplat/Web.pm', 'lib/Maplat/Web', 'Maplat::Web::');
print "Done\n";


sub updateClass {
    my ($filename, $dirname, $basename) = @_;

    print "updating $filename with $basename classes from $dirname\n";

    my @files = findModules($dirname, $basename);

    my @lines;
    open(my $ifh, "<", $filename) or die($! . ": $filename");
    @lines = <$ifh>;
    close($ifh);

lib/Maplat/Helpers/DateStrings.pm  view on Meta::CPAN

    my ($lt) = @_;
    
    $timezoneoffset = $lt;
    return 1;
}

sub getmylocaltime {
    return localtime ($timezoneoffset + time);
}

sub updateTimeMap {
    # calculate some variable date and time strings
    
    # atm, we need to run only once a day, so return quickly
    # it is the same date as last run
    my ($currentDate, undef) = getDateAndTime();
    if($timemap_updated eq $currentDate) {
        return;
    }
    $timemap_updated = $currentDate;
    

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 1.642 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )