Generally speaking, Python modules are not accessible from GlowScript VPython. However, JavaScript functions are accessible. Here are details of the JavaScript Date module:
And here is an example:
d = new Date()
print(d.getFullYear(), d.getMonth()+1, d.getDate(), d.getHours(), d.getMinutes(), d.getSeconds())