Questions tagged as 'timestamp'

1
answer

Unix Time for TDateTime

I need to convert a time received in a json in the format 750382 to 00:12:41 in delphi has the UnixToDateTime () function more only works if I receive the full date and time, but in this case I only receive the time, the full date and time...
asked by 05.03.2018 / 19:18
0
answers

Expose the same metric for Prometheus but with different timestamps

I want to expose several metrics with their respective timestamps to Prometheus, for example: test5{job_name="test05"} 15 1512982800000 test5{job_name="test05"} 10 1512986400000 test5{job_name="test05"} 6 1512990000000 test5{job_name="test05"}...
asked by 11.12.2017 / 16:00
1
answer

Hours in timestamp

Talk to the people, everything beauty? Is it possible for me to know how much is two hours in the timestamp conversion? In this line I convert the current time into timestamp. my $ hours_2 = str2time (localtime ()); But I need to kno...
asked by 09.04.2017 / 04:08
0
answers

Why is the timestamp field in the firebird database shown differently in a Ruby on Rails application?

I have a legacy Firebird 2.5 database. Access it via IBExpert 2016.9.4.1 This database is part of a request management system that is being migrated from a Delphi 10.1 Update 2 application to a Ruby(2.3.3) on Rails(4.2.7....
asked by 06.12.2016 / 18:27
4
answers

How to check events between 2 dates in MySQL?

Knowing that I have a table called eventos , and this table has the columns id , titulo , inicio and fim . The inicio and fim columns are of type timestamp , where the start and end date and time of...
asked by 04.02.2014 / 20:30
1
answer

How to insert timestamp value into a MySQL table?

I'm getting a timestamp value from a request, and I'd like to store this value in my database, however I want the column to interpret it correctly. The value is 1416178487. And using PHP's date('d/m/y',1416178487); function, it returns...
asked by 17.11.2014 / 00:06
1
answer

How to customize the Doctrine library to work with type Timestamp

I'm using Composer with Doctrine in my application, and it's getting wonderful. However I need to customize some Doctrine features by changing the Doctrine\DBAL\Platforms\AbstractPlatform and Doctrine\DBAL\Platforms\MySqlPlatform c...
asked by 07.08.2014 / 15:31
2
answers

How to check if the timestamp is today?

I have a JSON obtained from an API that returns a list of events like this: Array ( [alertList] => Array ( [alerts] => Array ( [0] => Array (...
asked by 22.08.2016 / 17:14