Skip to content

Commit 66dd36d

Browse files
committed
add begin_utc and end_utc args
1 parent 2f39e09 commit 66dd36d

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

dataretrieval/waterdata/api.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,6 +696,8 @@ def get_time_series_metadata(
696696
last_modified: Optional[Union[str, List[str]]] = None,
697697
begin: Optional[Union[str, List[str]]] = None,
698698
end: Optional[Union[str, List[str]]] = None,
699+
begin_utc: Optional[Union[str, List[str]]] = None,
700+
end_utc: Optional[Union[str, List[str]]] = None,
699701
unit_of_measure: Optional[Union[str, List[str]]] = None,
700702
computation_period_identifier: Optional[Union[str, List[str]]] = None,
701703
computation_identifier: Optional[Union[str, List[str]]] = None,
@@ -773,6 +775,14 @@ def get_time_series_metadata(
773775
for the last 36 hours
774776
775777
begin : string or list of strings, optional
778+
This field contains the same information as "begin_utc", but in the
779+
local time of the monitoring location. It is retained for backwards
780+
compatibility, but will be removed in V1 of these APIs.
781+
end : string or list of strings, optional
782+
This field contains the same information as "end_utc", but in the
783+
local time of the monitoring location. It is retained for backwards
784+
compatibility, but will be removed in V1 of these APIs.
785+
begin_utc : string or list of strings, optional
776786
The datetime of the earliest observation in the time series. Together
777787
with end, this field represents the period of record of a time series.
778788
Note that some time series may have large gaps in their collection
@@ -789,7 +799,7 @@ def get_time_series_metadata(
789799
* Half-bounded intervals: "2018-02-12T00:00:00Z/.." or "../2018-03-18T12:31:12Z"
790800
* Duration objects: "P1M" for data from the past month or "PT36H" for the last 36 hours
791801
792-
end : string or list of strings, optional
802+
end_utc : string or list of strings, optional
793803
The datetime of the most recent observation in the time series. Data returned by
794804
this endpoint updates at most once per day, and potentially less frequently than
795805
that, and as such there may be more recent observations within a time series

0 commit comments

Comments
 (0)