LV,

"Each Time has associated with it a Location, consulted when computing the 
presentation form of the time, such as in the Format, Hour, and Year 
methods. The methods Local, UTC, and In return a Time with a specific 
location. Changing the location in this way changes only the presentation; 
it does not change the instant in time being denoted and therefore does not 
affect the computations described in earlier paragraphs."

https://golang.org/pkg/time/#Time

For example, 

https://play.golang.org/p/iR7akAl4HH

Peter

On Wednesday, August 10, 2016 at 9:50:43 AM UTC-4, laxma...@gmail.com wrote:
>
> I was trying to find the solution to get a given time in timezone1 using 
> the time in timezone2.
>
> Have solution to get the time in other timezone for current time but did 
> not found a way to get time for a given time. 
>
> Thanks
> L V
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to