Example #1
0
func (engine_ *Engine) NewDate(value time.Time) *Value {
	return NewValue(engine_, C.V8_NewDate(engine_.self, C.double(value.Unix()*1000)))
}
Example #2
0
func (e *Engine) NewDate(value time.Time) *Value {
	return newValue(e, C.V8_NewDate(
		e.self, C.double(value.Unix()*1000),
	))
}