Questions tagged as 'time'

1
answer

Error in function to add data type TIME

I have the following problem with a function that I use to add two hours, one of the hours comes from a query, which is a TIME type field and the other hour is the one I send for a POST. What I want is to add to the time that the query brought m...
asked by 21.05.2018 / 07:03
1
answer

Change time to UTC

I have a doubt I think simple: I have a time read in a file and want to change it to UTC format. For example: #esto es lo que tengo importado: import datetime ,time from pytz import timezone def cambio_fecha_hora_utc(): fecha = 201806...
asked by 13.06.2018 / 17:41
2
answers

Format timestamp with Javascript

I have tried in many ways, and none of them work for me. It's simple what I want to achieve, I do not know if it's easy to do it. I want to transform, this: 1510060016 // time() -> PHP In this Hace 1 hora My idea was to do someth...
asked by 07.11.2017 / 15:22
3
answers

how to remove the time from the date in java?

I have a variable of type Date called dateElab and I use it in the value of a p: Calendar of primefaces <p:calendar id="mask" pattern="dd/MM/yyyy" mask="true" locale="es" value="#{Registro.datosVO.fechaElab}" So when I select...
asked by 14.02.2018 / 23:08
1
answer

Intervals of time between records

I have a table that is composed as follows:    Schedules id int(11) pk uq nn ai inicio datetime nn default "CURRENT_TIMESTAMP" fin datetime null default "CURRENT_TIMESTAMP" tipo tinyint(1) nn default 0 eliminado tinyint(1) nn default 0...
asked by 12.01.2018 / 17:36
4
answers

Can I force Java to use the GMT / UTC + 0 time?

I am working with the APIs of Date and Time Java 8. In my code I am interested in taking the time GMT / UTC + 0 , but picks the one from the computer that is > GMT / UTC + 1 . Can I force Java to do this without having...
asked by 04.12.2018 / 12:45
1
answer

Concatenate date and time in a variable

I need to create a complete date with date and time, I have two functions that receive a date and another time and I want to concatenate them to show the following format: yyyy-MM-dd HH:mm:ss dateChange(selectedDate) { //console.log...
asked by 17.10.2018 / 13:40
0
answers

How to place several dates with Date and Time Picker in a ListBox?

I would like to know how to insert 2 or more dates with the Date and Time control, selecting the "Select date" button and selecting the dates from the control. Or, if there is a better solution I am open to your answers. Thanks     
asked by 10.09.2018 / 17:21
0
answers

Column type TIME postgresql, returns object

I have a table that has columns that are of type TIME I work with symfony, so what I need is for this field to be filled in a form generated with symfony, but when it is generated I get this error:    Type error: Return value of App...
asked by 14.08.2018 / 16:23
0
answers

Update Django Application Date?

I have an application in Django in which users enter a date by means of a calendar but the date shown on the calendar is always the same as the day I started the Django server. I explain if I start the server on 5/19/2018, the schedule of the...
asked by 24.07.2018 / 15:46