Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: setting limitations for users based on time

by marto (Cardinal)
on Jan 02, 2015 at 09:52 UTC ( #1111975=note: print w/replies, xml ) Need Help??

in reply to setting limitations for users based on time

Welcome, please read and understand How do I post a question effectively?, it's better if you show people what you tried and explain how it failed. Below is an example of what I think you're looking for.

#!/usr/bin/perl use strict; use warnings; use DateTime; my $dt = DateTime->now; my $minute = $dt->minute; if ( $minute >= 55 ){ print "It's within 5 minutes of an hour\n"; }else{ print "No clock in for you!\n"; }

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1111975]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2021-03-03 00:24 GMT
Find Nodes?
    Voting Booth?
    My favorite kind of desktop background is:

    Results (68 votes). Check out past polls.