Questions tagged as 'time'

1
answer

Record in the database the office hours and make an appointment

Hello, I'm looking for a North to create with PHP and MySQL a way to record in the database the hours of operation of several establishments, so that I can easily search and display if the establishment is open, or closed, or until what time ther...
asked by 18.12.2014 / 14:43
0
answers

Store TIME field time greater than 838: 59: 59 in MySql

Good afternoon, Can anyone help me with this? I need to store time values greater than 838: 59: 59 in TIME-type field in MySql. Is there an alternative for TIME type to store value greater than 838: 59: 59? Thank you in advance for helping...
asked by 16.03.2017 / 18:37
2
answers

Calculate time interval in hours and minutes considering different days [duplicate]

At the moment I have this code that is calculating the interval between the hours. I want to increment the calculation with minutes, and I want to make some changes in the logic, for example when I put the input time as 23 hours and output tim...
asked by 28.08.2016 / 05:15
1
answer

Code does not compile in C ++ 11

I have a common code, more specifically the following: #include <iostream> #include <SFML/System.hpp> #include <SFML/Window/Keyboard.hpp> namespace thread { void check_key(sf::Keyboard::Key key) { while(true)...
asked by 08.11.2014 / 02:46
2
answers

Update the echo on a page every minute

I'm displaying the time in the user pane with the code: <?php date_default_timezone_set('America/Sao_Paulo'); $date = date('d-m-Y H:i'); ?> Using the echo command: <?php require("includes/serverTime.php"); echo "<div class...
asked by 14.04.2016 / 00:53
3
answers

Get local time in javascript filled with zeros?

I'm trying to get the local time and minute in javascript. The first way I tried was this: date = new Date; date.getHours() + ':' + date.getMinutes() // 10:5 But for the time of 10 hours and 05 minutes, it returned 10:5...
asked by 15.07.2015 / 15:09
1
answer

Calculate difference between hours in php [duplicate]

I'm trying to show how many hours an employee has worked, but the forms I've tried have incorrect values. They follow the same ones below: This returns the difference with 3 hours and 2 minutes less: $horario1 = '16:05:00'; $horario2 = '1...
asked by 06.05.2016 / 21:11
1
answer

How to convert 39 hours to type 'TIME'

To accomplish a certain task, I count the amount of time I spend on the task in my system. Today I came across the following: Data Inicial: 17/12/2018 16:49:14 Data Final: 19/12/2018 08:02:58 totalizando: 2362,29 minutos. Converto para d...
asked by 19.12.2018 / 11:43
1
answer

Set timezone in Codeigniter

I contain a site, which in the news it automatically records the date and time, but when registering, the time registered is 3 hours in advance. I'm thinking it should be some Codeigniter Timezone setup, does anyone know where to set this in it?...
asked by 29.03.2016 / 19:22
1
answer

Server with intermittent time [closed]

I have an external PHP server that has generated some time problems, sometimes it generates the correct time (eg, it generates 17:00 to 17:00) and sometimes it generates two hours more (eg 19: 00 to 5:00 p.m.). I have already tried to contact...
asked by 26.12.2016 / 20:20