下面是我的 ASP(不是 ASP.NET)代码:
<%
days = day(now)
if len(days) <> 2 then
days = "0"&days
END IF
months = month(now)
if len(months) <> 2 then
months ="0"&months
end if
min = dateadd("n",2,now)
hr = dateadd("h",-5,now)
Hrs = hour(hr)
if len(Hrs) <> 2 then
Hrs ="0"&Hrs
end if
Mins = minute(min)
if len(Mins) <> 2 then
Mins ="0"&Mins
end if
Secs = second(now)
if len(Secs) <> 2 then
Secs ="0"&Secs
end if
datess = year(now)&"-"&months&"-"&days&"T"&Hrs&":"&Mins&":"&Secs
response.write(datess) %>
输出是服务器时间(服务器托管在英国)。现在我想将其转换为 IST(印度标准时间)。如何在经典 ASP 中做到这一点?