I pasted the value below directly from a metadata point:
var switched = value.lastValue().time;
and received the following output:
Shouldn't all metadata script functions also work within a server side script?
On another note, lastValue() should be added to the wiki page.