What is the difference between gmt() and local()?

I have written

1. gmt(now(),"IST")

2. local(now(),"IST")

local() function shows correct time as per local timestamp, but gmt is showing +1 hour in my current time. Anyone can explain why?

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data