Time Across Globe Flow
Aryan executes this flow to answers questions such as
Current Time in Paris?
Current Time in PST?
What is CST Time?
Current Time in Tokyo?
Identify the Time Zone
First step is to Identify the Time Zone Based on Human Input. For Human request to get the Time Zone for CST, IST, PST, EST, CET, Human speech is checked to Identify these Zones and thereafter Time Zones are decided.
For Example for CST, Time Zone would be 'US/Central'
If the Human Speech isn't matching with any of the above Time Zone Keyword, then geography is used to identify the place and thereafter get the City Name.
Flow to Identify the City Name is mentioned here in the Time Zone Flow
If City Name is Human Default Home City Name
Then getDefaultTimeZone Flow is executed mentioned in the Time Basic Process Flow
Else Latitude and Longitude are identified and getTimeZoneValue flow is executed to get the TimeZone. Flow Details in Time Zone Flow
Get the Current Time on basis of Time Zone
Once Time Zone of the required location is identified, It is passed in date astimezone object to get the date, which is then converted into required Date Format to provide the current time to user.
Snippet below
Last updated
Was this helpful?