Questions tagged as 'time'

1
answer

What time is it in bd

Hello, I'm a beginner programmer, and I'm developing a sales web app, where I need to insert the exact time of the sale into the bd, but I'm not getting it.    Code in javascript that generates time in real time: <script language="j...
asked by 22.12.2018 / 12:54
1
answer

JavaScript Clock increase for game

I am creating a team in JS to count the time the user will take to complete the task. I am using setInterval() to run the team but I am not able to increment to more than (1) the value of min() . This is my code: const time = {...
asked by 31.08.2018 / 23:02
1
answer

Browser / Title Guide blinks when reaching specified time

I have the following code: function startTimer(duration, display) { var timer = duration, minutes, seconds; myInterval = setInterval(function () { minutes = parseInt(timer / 60, 10) seconds = parseInt(timer % 60, 10); minutes...
asked by 06.08.2018 / 18:51
1
answer

Create an int variable that recognizes numbers in time format

I have an int variable that is picking up the current android time and comparing with more dua int variables from my database in the parse that contains the opening and closing times of a company in business hours trading works, but when a compa...
asked by 09.09.2017 / 09:17
1
answer

restrict options to the fields type="date" and type="time"

I'm doing a scheduling form. The company is not 24h and does not work every day of the week. In this case, I need to restrict the options according to the company calendar. I thought of validating with js, but this will be anti-functional, one...
asked by 04.06.2017 / 17:24
1
answer

Select - Time comparison does not work

I'm trying to make a query to eliminate results in which the end time of the event is equal to 00:00:00, I made the query this way: select nome, local, hora_inicio, hora_fim, data_inicio, data_fim from agenda where hora_fim <> 00:00:00;...
asked by 21.02.2017 / 19:48
1
answer

Using double type in c ++ can be more "fast" in terms of runtime than using floats?

I have a program developed in c ++ in visual studio, which processes a huge amount of data! This program can either use float or double data, and this specification is done as follows: typedef float/double real; ie in the previous statement...
asked by 02.06.2015 / 18:56
1
answer

Stopwatch with wrong timing

I have a QtSDK timer, but when it starts time goes absurdly faster than normal . Here is the code below: QTime time; QTimer timer; void PlanejamentoWidget::timeUpdate(){ QTime t = ui.timeEdit->time(); ui.timeEdit->setTime(t.add...
asked by 23.02.2015 / 16:46
1
answer

My script that searches for a string in another is taking too long

My script loads the command1 (file1) and saves the first column of all rows in a vector, later it will look for each substring of that vector in a file 2 (of command2). The problem is that file 1 has about 3,000,000,000 lines and file 2 has abou...
asked by 18.11.2018 / 15:12
1
answer

How to use sleep for a loading effect tkinter graphical interface

I want to use the sleep of the time module to give a load / wait effect on checking for a condition. Without using tkinter functions, the effect works perfectly, but when I try to do the same with tkinter , this no longer works. Could any...
asked by 27.08.2018 / 16:06