本文整理汇总了Python中pycast.common.timeseries.TimeSeries.convert_timestamp_to_epoch方法的典型用法代码示例。如果您正苦于以下问题:Python TimeSeries.convert_timestamp_to_epoch方法的具体用法?Python TimeSeries.convert_timestamp_to_epoch怎么用?Python TimeSeries.convert_timestamp_to_epoch使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类pycast.common.timeseries.TimeSeries
的用法示例。
在下文中一共展示了TimeSeries.convert_timestamp_to_epoch方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: forecast_until
# 需要导入模块: from pycast.common.timeseries import TimeSeries [as 别名]
# 或者: from pycast.common.timeseries.TimeSeries import convert_timestamp_to_epoch [as 别名]
def forecast_until(self, timestamp, format=None):
"""Sets the forecasting goal (timestamp wise).
This function enables the automatic determination of valuesToForecast.
:param timestamp: timestamp containing the end date of the forecast.
:param String format: Format of the timestamp. This is used to convert the
timestamp from UNIX epochs, if necessary. For valid examples
take a look into the :py:func:`time.strptime` documentation.
"""
if None != format:
timestamp = TimeSeries.convert_timestamp_to_epoch(timestamp, format)
self._forecastUntil = timestamp