Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

substract variable amount of minutes from timestamp postgresql

SELECT p.date_time + number_of_seconds * INTERVAL '1 second'
    FROM photo p 
    WHERE p.id = 1;
Source by joaopribs.wordpress.com #
 
PREVIOUS NEXT
Tagged: #substract #variable #amount #minutes #timestamp #postgresql
ADD COMMENT
Topic
Name
4+1 =