Questions tagged as 'time'

2
answers

time () function php

I am paging some purchases that have specific dates, and when I pass as a parameter that a date should be < that date("Y-m-t", time() + 14*24*60*60) , which in the case would have to be 2 weeks, he pages me 1 month. According to the php do...
asked by 18.09.2015 / 16:01
1
answer

MySQL Time Comparison

I have a schedule where I register an appointment, this appointment has Hora Inicial and Hora Final . But now when I register a new appointment I have to do a check to see if the hours are not between the hours already registered. E...
asked by 10.07.2015 / 20:18
2
answers

Treat intervals between two Time Mysql fields

I have a Atendimento table in my DB. Inside it I have two fields that are: HrIni which refers to the start time and another HrFim which refers to the end time. I need for each record of these two fields to be stored in a...
asked by 02.09.2014 / 19:07
1
answer

How to adjust the format dd / mm / yyyy

I have the following code that takes the instant computer date. #include <Windows.h> #include <stdio.h> #include <time.h> void main () { time_t t = time(NULL); struct tm tm = *localtime(&t); printf("Agora: %...
asked by 24.10.2014 / 02:25
1
answer

When to use UNIX_TIMESTAMP

For sure, we all work with dates, timestamp, among other forms and formats. The UNIX_TIMESTAMP (the time in seconds since '1970-01-01 00:00:00' UTC so far) always ends up appearing slightly when we are looking for manipulations between that...
asked by 29.03.2018 / 12:42
1
answer

Error entering date in sprint on jira

When I try to start my sprint, this error appears in the jira     
asked by 12.12.2017 / 22:35
1
answer

Write output from bash linux, in a file

I need to do some testing on the linux command line, but doing all the testing is very time-consuming, can anyone help me, if I can, write code in shell script to run all tests, and write output from bash in a txt file?     
asked by 27.10.2017 / 18:08
3
answers

Printing times with predetermined intervals

I'm trying to make a code that will print the hours at a given interval. <?php //Array com os horarios que possam ser imprimidos $hora = array('13:55:40','13:56:40','13:58:41','13:59:40','14:01:00','14:02:00','14:04:40', '14:05:00','14:07:...
asked by 23.11.2017 / 19:58
1
answer

Conversion to int with static_cast in c ++

Doing a search found something related to this error. I have the following error below:    ERROR: date.cxx: In member function 'int   CurrentDateTime :: GetMonth (const string &) ': date.cxx: 125: 18: error:   can not convert 'const Month...
asked by 13.09.2017 / 20:09
2
answers

Adding Hours higher 24 h

The sql statement returns me the times of type Time: | Horas | |20:52:00| |12:42:00| |09:00:00| |07:45:00| I would like to add up the total hours, but this way it is "zeroing" when it reaches 24 hours. procedure .... var vqtMaqLigada :...
asked by 29.11.2016 / 12:42