Questions tagged as 'time'

2
answers

Get date and time regardless of system time

Well, I'm having a hard time getting the date and time in JavaScript when the computer or system is having this incorrect data. Official time: 08:35 - 07/14/2016 - Brasilia timetable Computer Time: 23:46 - 7/12/2016 No matter what metho...
asked by 14.07.2016 / 13:40
2
answers

Plot hourly time series on a defined scale

I have a time series serial record, and I'm having trouble plotting on an appropriate scale. Here's an example: #Gerar sinal v1 v1=sin(seq(from=0, to=3*2*pi, length=11060)) #Gerar sinal v2 v2=sin(seq(from=0, to=5*2*pi, length=11060)) #G...
asked by 23.11.2017 / 14:22
2
answers

How to decrease TimeSpan time?

I need to set a time within TimeSpan , and make it shorten the time. When you get to [00:00:00], for the time. I need to do this format: [00:00:00] - hour, minute, and second. Below, I put 5 min. private void timer1_Tick(object sender...
asked by 08.02.2018 / 21:48
2
answers

Doing operations / handling DateTime

The idea is for the user to type in a textbox a horaEntrada and in another the horaSaida in which case these 2 variables should have the format "HH: mm" hours and minutes, only, after that by method get and set...
asked by 03.11.2016 / 22:03
1
answer

Calculate from x in x seconds

I have this code that calculates in 1 second in 1 second between a certain time and then insert into a table. Instead of calculating every 1 second, how can I calculate, for example, every 5 seconds? for y = horaInicial, horaFinal-1 do hor...
asked by 18.02.2015 / 16:28
2
answers

Difference between two dates in PHP in months of 31, 28 and 29 days

I have a bonus system that only frees the bonus after 30 exact days of the user's registration. To compare the current date with the user's registration date so that I get how many days left to complete 30 exact days, I use the following code...
asked by 03.06.2015 / 03:57
2
answers

Calculate hours in PHP?

I'm developing an electronic dot in PHP and would like to know how to do the two-hour Cachulo, one of which is negative, for example: Day 1: -05: 00: 00 Hours day 2: 08:00:00 How would you do the two-hour bill to get the balance of hour...
asked by 07.07.2015 / 23:32
1
answer

Time out with unexpected result

I'm running a code that sets the hours in the terminal but when I use the code below it brings me a totally wrong value at the time: Code: from time import gmtime, strftime print(strftime("%a, %d %b %Y %H:%M:%S +0000", gmtime())) Here is...
asked by 20.09.2018 / 22:42
1
answer

How to suspend a command without disturbing commands that are active

I would like to know if you know a command in python that suspends the operation of a command (for a few seconds) without disrupting the other commands that are active, since I wanted to make a rental system but time.sleep the other commands wor...
asked by 02.11.2017 / 01:19
1
answer

Creating a schedule of appointments in Ruby

I want to create a sort of routine that interleaves time interval Example: 8:00 a.m. to 12:00 a.m. 30 minute interval A sample code class Appointment < ActiveRecord::Base has_many :schedules def advance_time(resource) return...
asked by 03.08.2016 / 21:40