-
Notifications
You must be signed in to change notification settings - Fork 10
/
date.yaml
37 lines (37 loc) · 971 Bytes
/
date.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# This is an example YAML file mimicking the builtin "date" type as external type
---
name: extern_date
typedef: 'record deriving(eq, ord, parcelable)'
params: []
prefix: ''
cpp:
typename: 'std::chrono::system_clock::time_point'
header: '<chrono>'
byValue: true
objc:
typename: 'NSDate'
header: '<Foundation/Foundation.h>'
boxed: 'NSDate'
pointer: true
hash: '(NSUInteger)%s.timeIntervalSinceReferenceDate'
objcpp:
translator: '::djinni::Date'
header: '"djinni/objc/DJIMarshal+Private.h"'
java:
typename: 'java.util.Date'
boxed: 'java.util.Date'
reference: true
generic: true
hash: '%s.hashCode()'
writeToParcel: 'out.writeLong(%s.getTime())'
readFromParcel: 'new %s(in.readLong())'
jni:
translator: '::djinni::Date'
header: '"djinni/jni/Marshal.hpp"'
typename: jobject
typeSignature: 'Ljava/util/Date;'
cs:
translator: '::djinni::Date'
header: '"djinni/cppcli/Marshal.hpp"'
typename: 'System::DateTime'
reference: false