All Products
Search
Document Center

PolarDB:ST_SetEndDateTime

Last Updated:Mar 28, 2026

Sets the end time of a raster object.

Syntax

raster ST_SetEndDateTime(raster raster_obj, timestamp time);

Parameters

ParameterDescription
raster_objThe raster object whose end time you want to set.
timeThe end time to assign to the raster object. Use the yyyy-MM-dd HH:mm:ss format. Example: 2020-08-30 18:00:00.

Examples

The following example sets the end time of a raster object and returns the updated value using ST_endDateTime.

SELECT ST_endDateTime(ST_SetEndDateTime(raster_obj, '2020-01-01'))
FROM raster_table;

Output:

    st_enddatetime
-------------------------
 Wed Jan 01 00:00:00 2020