I'm using Lambda (Python) to develop a skill and I'm interested in giving the user some time-related information. On the request
object there is a timestamp
but that is UTC without offset. Is there a way to find the user's date/time or timezone without having to ask for location information (and if that's the only way, do you know of a database of US zip codes to timezone or another workaround?).
相关问题
- Display time in local timezone when querying Influ
- lon,lat to timezone
- convert string to DateTime in C# with EDT at the e
- VBA local timezone adjustment
- Jackson to deserialize Joda LocalDate from ISO Dat
相关文章
- How to truncate seconds in TSQL?
- How to remove seconds from datetime?
- OLS with pandas: datetime index as predictor
- Calculate number of working days in a month [dupli
- How can I convert a OLE Automation Date value to a
- Out of bounds nanosecond timestamp
- How to serialize Xml Date only from DateTime in C#
- Set Date/Time to 00:00:00
It is now possible to get the user's timezone using the Alexa Settings API. See the related blogpost for official information about this feature's release.
The endpoint you'll be interested in is the following:
You simply need to provide the user's device ID, which is part of the received intent. The response will contain a timezone name, for instance "Europe/London".