All Products
Search
Document Center

PolarDB:ST_SetBeginDateTime

Last Updated:Mar 28, 2026

Sets the start time of a raster object.

Syntax

raster ST_SetBeginDateTime(raster raster_obj, timestamp time);

Parameters

ParameterDescription
raster_objThe raster object whose start time you want to set.
timeThe start 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 start time of each raster in raster_table to 2020-01-01 and retrieves the updated value using ST_beginDateTime.

SELECT ST_beginDateTime(ST_setBeginDateTime(raster_obj, '2020-01-01'))
FROM raster_table;

Output:

     st_begindatetime
-------------------------
 Wed Jan 01 00:00:00 2020