Questions tagged as 'time'

2
answers

C ++ no match for 'operator + =' (operand types are 'float' and 'std :: chrono :: durationlong int')

I am trying to calculate the average execution time of a program, for 10 executions, for this I use the library chrono of C ++ 11, however, I'm getting an error that says there is no operator to make += , I understand that variables...
asked by 22.11.2018 / 22:14
1
answer

Add two hours in Java

I'm using java and I have the following scenario. The entity season one of the attributes is duration and a season can have many chapters, for each chapter that is added to a season, the duration of all the chapters is added and added to the...
asked by 07.11.2018 / 20:30
3
answers

Wait a while x after each print in Python 2.7.15

so far my code is something like: print "hola" time.sleep(1) print "mundo" time.sleep(1) if var == 0: print "hola" time.sleep(1) print "persona" time.sleep(1) else: pass and so after each print. The idea is to achieve a...
asked by 30.12.2018 / 06:48
2
answers

How to subtract a specific time with the system time in php?

How can I make the $ total variable give me a result in hour format? Now with this code, the only thing I achieve is to subtract the hours, but not the minutes, and it only shows me a number. example: 07:45 - 03:35 = 4. I would like instead of g...
asked by 13.06.2018 / 03:22
1
answer

Problem with capturing the time with date ("ymd") PHP

I have that variable to take the current date    $ current_date = date ("ymd"); I have a problem I do not know the exact time but after 6pm to 8pm it takes the data as the current date + 1 some solution for it? if I do:    $ current...
asked by 05.11.2018 / 02:03
2
answers

How can I disable a jtextfield for ten seconds in java

Hi, could you tell me which is the best way to disable a jtextfield after the user press enter for a certain time like 10 sec Thanks     
asked by 28.08.2018 / 05:34
1
answer

How can I block an ip to a redirect php file?

This is my redirect file in php <?php header("Location: https://www.ejemplo.org/anuncio1.php"); ?> What code do I need so that when a person with an ip. for example 192.168.1.1 can only be redirected once a day or once per hour to that...
asked by 18.04.2018 / 22:40
0
answers

How can I enter the time in Django? [closed]

I need help I am developing an application in which the user enter a time from a form, and managed to enter the date but the client wishes to enter the time in 2:00 pm format, but never managed a model for this task can someone help me as I can...
asked by 11.08.2017 / 15:20
3
answers

PHP timestamp, the variables have the same value at the end

The idea is to calculate the seconds that have passed since you entered the page until the button was clicked, using PHP. The thing is, I want to do this process on the same page, I had previously tried sending the request to a separate page,...
asked by 08.05.2018 / 09:47
2
answers

As determined by time () the default time zone PHP

This question has arisen because of working with dates. The problem is the following; getting the current time from the function getdate() that takes the function time() returns me a time that has nothing to do with my time zone (U...
asked by 30.04.2018 / 18:48