v8
12.4.254 (node 22.4.1)
V8 is Google's open source JavaScript engine
Loading...
Searching...
No Matches
v8-date.h
Go to the documentation of this file.
1
// Copyright 2021 the V8 project authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#ifndef INCLUDE_V8_DATE_H_
6
#define INCLUDE_V8_DATE_H_
7
8
#include "
v8-local-handle.h
"
// NOLINT(build/include_directory)
9
#include "
v8-object.h
"
// NOLINT(build/include_directory)
10
#include "
v8config.h
"
// NOLINT(build/include_directory)
11
12
namespace
v8
{
13
14
class
Context;
15
19
class
V8_EXPORT
Date
:
public
Object
{
20
public
:
21
static
V8_WARN_UNUSED_RESULT
MaybeLocal<Value>
New
(
Local<Context>
context,
22
double
time);
23
28
double
ValueOf
()
const
;
29
33
v8::Local<v8::String>
ToISOString
()
const
;
34
35
V8_INLINE
static
Date
*
Cast
(
Value
* value) {
36
#ifdef V8_ENABLE_CHECKS
37
CheckCast(value);
38
#endif
39
return
static_cast<
Date
*
>
(value);
40
}
41
42
private
:
43
static
void
CheckCast(
Value
* obj);
44
};
45
46
}
// namespace v8
47
48
#endif
// INCLUDE_V8_DATE_H_
v8::Date
Definition
v8-date.h:19
v8::Date::Cast
static V8_INLINE Date * Cast(Value *value)
Definition
v8-date.h:35
v8::Date::New
static V8_WARN_UNUSED_RESULT MaybeLocal< Value > New(Local< Context > context, double time)
v8::Date::ValueOf
double ValueOf() const
v8::Date::ToISOString
v8::Local< v8::String > ToISOString() const
v8::Local
Definition
v8-local-handle.h:258
v8::MaybeLocal
Definition
v8-local-handle.h:616
v8::Object
Definition
v8-object.h:234
v8::Value
Definition
v8-value.h:32
v8
Definition
libplatform.h:15
v8-local-handle.h
v8-object.h
v8config.h
V8_EXPORT
#define V8_EXPORT
Definition
v8config.h:753
V8_INLINE
#define V8_INLINE
Definition
v8config.h:477
V8_WARN_UNUSED_RESULT
#define V8_WARN_UNUSED_RESULT
Definition
v8config.h:628
include
v8-date.h
Generated on Thu Jul 11 2024 21:30:42 for v8 by
1.9.7