Here use javascript to convert the current time to UTC standard time,Beijing is in Dongba District,8 hours minus Beijing time

<! Doctype html>
click the button to display the utc date and time as a string.
<button onclick="myfunction ()">try it</button>
function myfunction ()
var d=new date ();
var x=document.getelementbyid ("demo");
x.innerhtml=d.toutcstring ();
  • Previous Analysis of common functions of Python string and file operations
  • Next C # method to read files using file stream
  • Trends