Skip to content

Commit 59a6b3d

Browse files
committed
delete the examples of the deprecated function see vrl/issues/284
1 parent 0833623 commit 59a6b3d

File tree

1 file changed

+0
-38
lines changed

1 file changed

+0
-38
lines changed

website/cue/reference/remap/functions/to_timestamp.cue

-38
Original file line numberDiff line numberDiff line change
@@ -44,42 +44,4 @@ remap: functions: to_timestamp: {
4444
"If `value` is a `float`, it s assumed to be a Unix representation of the timestamp (the number of seconds after January 1st, 1970) with fractional seconds.",
4545
]
4646
}
47-
48-
examples: [
49-
{
50-
title: "Coerce a string to a timestamp"
51-
source: """
52-
to_timestamp!("2020-10-21T16:00:00Z")
53-
"""
54-
return: "2020-10-21T16:00:00Z"
55-
},
56-
{
57-
title: "Coerce a unix timestamp (integer) to a timestamp"
58-
source: """
59-
to_timestamp!(1675968923)
60-
"""
61-
return: "2023-02-09T18:55:23Z"
62-
},
63-
{
64-
title: "Coerce a unix timestamp (float) to a timestamp"
65-
source: """
66-
to_timestamp!(1675968923.567)
67-
"""
68-
return: "2023-02-09T18:55:23.566999912Z"
69-
},
70-
{
71-
title: "Coerce a unix timestamp, in milliseconds, to a timestamp"
72-
source: """
73-
to_timestamp!(1676478566639, unit: "milliseconds")
74-
"""
75-
return: "2023-02-15T16:29:26.639Z"
76-
},
77-
{
78-
title: "Coerce a unix timestamp, in nanoseconds, to a timestamp"
79-
source: """
80-
to_timestamp!(1675968923012312311, unit: "nanoseconds")
81-
"""
82-
return: "2023-02-09T18:55:23.012312311Z"
83-
},
84-
]
8547
}

0 commit comments

Comments
 (0)