semantique.processor.arrays.Array.tz_convert

semantique.processor.arrays.Array.tz_convert#

Array.tz_convert(tz, **kwargs)[source]#

Convert the temporal coordinates of the array into a different timezone.

Parameters:
  • tz – Target timezone. Can be given as str referring to the name of a timezone in the tz database, or as instance of any class inheriting from datetime.tzinfo.

  • **kwargs – Additional keyword arguments passed on to convert_datetime64.

Returns:

xarray.DataArray – The input array with converted temporal coordinates.