Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: setting limitations for users based on time

by marto (Archbishop)
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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2019-12-06 05:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (154 votes). Check out past polls.

    Notices?