TO_DSINTERVAL function in Oracle

TO_DSINTERVAL is one of the vital Conversion functions of Oracle. It is used to convert a string to an INTERVAL DAY TO SECOND value. The TO_DSINTERVAL function is supported in the various versions of the Oracle/PLSQL, including, Oracle 12c, Oracle 11g, Oracle 10g and Oracle 9i.


TO_DSINTERVAL ( char, nls_language )

char: It is used to specify the string to be converted.
nls_language: It is an optional parameter which is used to specify the nls language to be used for conversion.


TO_DSINTERVAL('130 08:30:00')



Here, a string is converted to an INTERVAL DAY TO SECOND value

Please Share