Mar 24, 2013, 10:22 PM
Ok, now I've slight change in the original code. I need to now check for date and time as well. Like the condition should check first day of the month and time of 07:30AM.
Re: [Kenosis] if then else with Date help needed
localtime(time)==1 07:30AM ? 'D:\\MyFiles\con_1.conf' : 'D:\\MyFiles\con_2.conf';
I am thinking about this but not sure if that's the best approach:
my $con = ( ( localtime(time) )  == 30 && (localtime(time) )  == 7 && (localtime(time) )  == 1 ) ?
'D:\\MyFiles\con_1.conf' : 'D:\\MyFiles\con_2.conf';
(This post was edited by dprogrammer on Mar 25, 2013, 9:45 AM)