esodan opened a new issue, #39702:
URL: https://github.com/apache/arrow/issues/39702

   ### Describe the enhancement requested
   
   Current API to create a `GArrowTimestamp`, requires a 
`GArrowTimestampDataType`.
   
   An `GArrowTimestampDataType` can be created but only is possible to define 
its time units; there isn't an API to create one adding a time zone as in 
PyArrow.
   
   So a new garrow_timestamp_data_type_new_with_timezone() method is required 
using the following signature:
   
   ```c
   GArrowTimestampDataType *
   garrow_timestamp_data_type_new_with_timezone (GArrowTimeUnit unit, 
GTimeZone* tz);
   ```
   
   This should help GLib users to create timestamps with a time zone.
   
   Above will require to add a method to get the current `GTimeZone`:
   ```c
   GTimeZone *
   garrow_timestamp_get_timezone (GArrowTimestampArray *array);
   ```
   
   Above API should be the added too, to `GArrowTime32Array` and 
`GArrowTime64Array` arrays, so is easy to know the time zone the time is 
representing.
   
   ### Component(s)
   
   GLib


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to