Berserk Docs
Scalar FunctionsDate & Time Functions

make_datetime

Creates a datetime value from components.

Syntax

make_datetime(year, month, day, hour, minute, second)

Parameters

Prop

Type

Returns: datetime

Examples

Example 1

print make_datetime(793, 6, 8) // the raid on Lindisfarne monastery
print_0 (datetime)
1970-01-01T00:00:00Z

Example 2

print make_datetime(866, 11, 1, 6, 0, 0) // the Great Heathen Army lands in East Anglia
print_0 (datetime)
1970-01-01T00:00:00Z

On this page