Hi,
i’m trying to multiply a time with two different values depending what weekend day it is.
e.g.
$TimeWorked = “01:00” ;
$OnSaturday = 1.5 ;
$OnSunday = 2 ;
If (Date(“w”, Time) == 6 ) {
$TimePayed = Date( “H:i:s”, (strtotime( $TimeWorked ) * $OnSaturday )) ) // Output: “01:30:00” = OK
}
If(Date("w|, Time) == 0) {
$TimePayed = Date( “H:i:s”, (strtotime( $TimeWorked ) * $OnSunday )) ) // Output: “19:31:44” = ???
}
I don’t get it. What am i doing wrong here ?
Or is there a better way to do this ?
btw. It is european time.
Thanks,
Sylvester