I tried different ways but nothing worked as expected.
My first try:
let off= new Date().getTimezoneOffset()/60;
which gives -5.5
My second try
let off = new Date().toString().split("GMT")[1].split(" (")[0]
which gives +0530
as the new Date() gives Mon Apr 20 2020 12:10:22 GMT+0530 (India Standard Time)
What i need is +05.30 from the timezone.