Add builtin functions MODIFY_DATE, MODIFY_TIME
----------------------------------------------

                 Key: CORE-5623
                 URL: http://tracker.firebirdsql.org/browse/CORE-5623
             Project: Firebird Core
          Issue Type: New Feature
          Components: Engine
            Reporter: Karol Bieniaszewski


If you consider new functions then much common will be 
Of course it's just a suggestion of a name and syntax,

MODIFY_DATE([SET] {DAY |  MONTH | YEAR }  <value> FOR <date or timestamp>)

MODIFY_DATE(DAY 1 FOR  '2017-09-22')          -- 2017-09-01
MODIFY_DATE(MONTH 1 FOR '2017-09-22')     -- 2017-01-27
MODIFY_DATE(YEAR 2000 FOR  '2017-09-22') -- 2000-09-22

and

MODIFY_TIME([SET] {HOUR |  MINUTE | SECOND | MILLISECOND }  <value> FOR <date 
or timestamp>)

MODIFY_TIME(HOUR 15 FOR '08:06:22')                        -- '15:06:22'       
MODIFY_TIME(MINUTE 15 FOR '08:06:22')   -- '08:15:22'   
MODIFY_TIME(SECOND 1 FOR '08:06:22')  -- '08:06:01'   
...

maybe name should be RECODE_DATE, REPLACE_DATE...

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to