Questions tagged as 'timestamp'

2
answers

Parsing a timestamp with timezone

I was making a small code to implement a treatment case in a friend application module and got stuck with a problem. This is a unit test. To put in the application module I would have to make some adjustments when inserting into the native co...
asked by 01.05.2018 / 02:36
1
answer

Default Timestamp Mysql

How do I put the value of the field by default timestamp current? I need to alterar my table to add a field timestamp not null which has the current default by default, so all previous records have the current timestamp t...
asked by 02.12.2014 / 14:34
1
answer

Check if date is between two dates in the 30 min interval

I have a service that before saving some value in the bank, it needs to be checked if it is within some time already saved in the bank. Each period consists of half an hour. ex: 10:00 10:30 11:00 If the user tries to put 10:31, an exception...
asked by 09.05.2018 / 21:27
1
answer

How to get only timestamp time?

I have a timestamp column in my table and I need to pick up only those time values. Example of how you are registered: 30.12.1899 17:03 Example of how I need to display via select: 17:00 I got it this way: SELECT CASE WHE...
asked by 16.08.2017 / 22:07
1
answer

How to enter time in Oracle?

I need to save only hour and minutes (seconds do not make a difference, so have or do not), should I use TIME or TIMESTAMP ? I started to do with TIMESTAMP(6) , but I'm having a hard time doing insert , what should I...
asked by 19.07.2017 / 17:33
1
answer

SQL date filter on timestamp

I have the following query: SELECT name, commission, timestamp, state_name FROM magry_awoaffiliate_commission c INNER JOIN magry_users u ON (c.user_id = u.id) INNER JOIN magry_virtuemart_userinfos v ON (c.user_id = v.virtuemart_user_id) INNER...
asked by 30.03.2017 / 21:42
1
answer

How to convert / Date (1533524400000-0300) / to PHP

I get a return from a JSON date in this format: /Date(1533524400000-0300)/ How to convoke a DateTime in PHP?     
asked by 08.06.2018 / 15:31
1
answer

Convert DateTime to unixtime

Good morning, someone can help me? I have a Java application and I need to do a conversion .. In which is the localDate for unixtime .. How can I do this? This is my localDate: for (Telemetry telemetry : listTelemetry) { telemetry...
asked by 27.10.2015 / 13:17
1
answer

Calendar is not working correctly

My conversion from timestamp to calendar was apparently successful, since the data presented appears correct except for the day of the week.    data = (java.util.GregorianCalendar)   java.util.GregorianCalendar [time = -125784706799416, areFi...
asked by 31.01.2017 / 02:37
2
answers

How to get the correct date using momentjs

Personal speech. I'm having some problem trying to use the library momentjs to work with dates. My problem is described below. ****--------- Datetime ----------**** Timestamp recebido do banco de dados -> 2016-07-12 17:21:40 <- ES...
asked by 13.07.2016 / 16:28