vox-core
Version:
Runtime de aplicaciones multiplataforma
41 lines (32 loc) • 1.24 kB
JavaScript
var mscorlib=core
var System=mscorlib.System;
var TimeZoneInfo= mscorlib.System.TimeZoneInfo;
TimeZoneInfo.ready(function(){
var newyork = TimeZoneInfo.findSystemTimeZoneById('America/New_York');
var date_1= new System.DateTime(2012,3,11,7,0, 0,System.DateTimeKind.Utc);
var date_x1=date_1.toLocalTime();
var date_2= new System.DateTime(2012,3,11,6,59,0,System.DateTimeKind.Utc);
vw.info(date_1.kind);
vw.info(date_2.kind);
var date_3= TimeZoneInfo.convertTime(date_1, TimeZoneInfo.utc, newyork);
var date_4= TimeZoneInfo.convertTime(date_2, TimeZoneInfo.utc, newyork);
vw.log (date_x1);
vw.log (date_x1.kind);
var date_3x= TimeZoneInfo.convertTime(date_x1, newyork);
vw.log (date_3x);
date_4x= date_3x.toLocalTime();
vw.log (date_4x);
date_3x= TimeZoneInfo.convertTime(date_3x, TimeZoneInfo.local);
vw.log (date_3x);
var date_5 = System.DateTime.specifyKind (date_4, System.DateTimeKind.Utc);
var date_6 = System.DateTime.specifyKind (date_4, System.DateTimeKind.Local);
vw.log (date_4.kind);
vw.log (date_5.kind);
vw.log (date_6.kind);
vw.log (date_4.toBinary().toString());
vw.log (date_5.toBinary().toString());
vw.log (date_6.toBinary().toString());
vw.info(date_3);
vw.info(date_4);
return;
})