Gofast77 Posted June 24, 2014 Report Posted June 24, 2014 Hello, I would like separate hours and minutes in "0.0" (total hours of pilot). I would like this format : "X Hours and X Minutes". Thanks Gofast Quote
Members Vangelis Posted June 25, 2014 Members Report Posted June 25, 2014 Where and what ? usually we use explode $explodedvalue=( explode( '.', $input2 ) ); Have a look at this link http://www.php.net//manual/en/function.explode.php Quote
Gofast77 Posted August 20, 2014 Author Report Posted August 20, 2014 Hi, I know it's been a while but thats finally work, thank you very much. Quote
Sava Posted August 20, 2014 Report Posted August 20, 2014 I am not sure without checking, but you should check how phpVMS handles this. 1.5 may be actually 1hour 30minutes, not 1hour 50minutes Either way, it shouldn't be difficult to get what you want Quote
Gofast77 Posted August 20, 2014 Author Report Posted August 20, 2014 So how to have the correct number ? Quote
Members Vangelis Posted August 21, 2014 Members Report Posted August 21, 2014 with the way i told you if you check the add schedule function uses str_replace to change the . with : this proves that it is HH.MM $data['flighttime'] = str_replace(':', '.', $data['flighttime']); Quote
alblua Posted August 21, 2014 Report Posted August 21, 2014 I am not sure without checking, but you should check how phpVMS handles this. 1.5 may be actually 1hour 30minutes, not 1hour 50minutes Either way, it shouldn't be difficult to get what you want The default skin says: Enter as hours - 5.30 hours is 5 hours and 30 minutes Quote
Sava Posted August 21, 2014 Report Posted August 21, 2014 Then it's okay. In case you need to convert it in some other case, it is easy. 1.53 would be 0.53x60 ~ 32 minutes Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.