Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions definitions/taurus/date/data_types/date.proto.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"identifier": "DATE",
"name": [
{
"code": "en-US",
"content": "Date"
}
],
"alias": [
{
"code": "en-US",
"content": "date;day;day of month;calendar day"
}
],
"displayMessage": [
{
"code": "en-US",
"content": "Date"
}
],
"type": "number",
"rules": []
}
31 changes: 31 additions & 0 deletions definitions/taurus/date/data_types/hour.proto.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"identifier": "HOUR",
"name": [
{
"code": "en-US",
"content": "Hour"
}
],
"alias": [
{
"code": "en-US",
"content": "hour;hours;hr;time"
}
],
"displayMessage": [
{
"code": "en-US",
"content": "Hour"
}
],
"type": "number",
"rules": [
{
"number_range": {
"from": 0,
"to": 23,
"steps": 1
}
}
]
}
31 changes: 31 additions & 0 deletions definitions/taurus/date/data_types/minute.proto.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"identifier": "MINUTE",
"name": [
{
"code": "en-US",
"content": "Minute"
}
],
"alias": [
{
"code": "en-US",
"content": "minute;minutes;min;time"
}
],
"displayMessage": [
{
"code": "en-US",
"content": "Minute"
}
],
"type": "number",
"rules": [
{
"number_range": {
"from": 0,
"to": 59,
"steps": 1
}
}
]
}
23 changes: 23 additions & 0 deletions definitions/taurus/date/data_types/month.proto.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"identifier": "MONTH",
"name": [
{
"code": "en-US",
"content": "Month"
}
],
"alias": [
{
"code": "en-US",
"content": "month;months;month of year;calendar month"
}
],
"displayMessage": [
{
"code": "en-US",
"content": "Month"
}
],
"type": "'JAN' | 'FEB' | 'MAR' | 'APR' | 'MAY' | 'JUN' | 'JUL' | 'AUG' | 'SEP' | 'OCT' | 'NOV' | 'DEC'",
"rules": []
}
18 changes: 18 additions & 0 deletions definitions/taurus/date/module.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"identifier": "taurus-date",
"name": [
{
"code": "en-US",
"content": "Date"
}
],
"description": [
{
"code": "en-US",
"content": "Work with Dates."
}
],
"documentation": "",
"author": "CodeZero",
"icon": "tabler:calendar"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"runtimeName": "std::date::format",
"runtimeParameterDefinitions": [
{
"runtimeName": "date",
"defaultValue": null,
"name": [
{
"code": "en-US",
"content": "Date"
}
],
"description": [
{
"code": "en-US",
"content": "The date that will be formatted."
}
],
"documentation": []
},
{
"runtimeName": "pattern",
"defaultValue": null,
"name": [
{
"code": "en-US",
"content": "Pattern"
}
],
"description": [
{
"code": "en-US",
"content": "The pattern used to format the date, for example DD:MM:YYYY or YY:MM:DD."
}
],
"documentation": []
}
],
"throwsError": true,
"name": [
{
"code": "en-US",
"content": "Format Date"
}
],
"description": [
{
"code": "en-US",
"content": "Converts a date into a formatted text using the given pattern. Throws an error if the pattern is invalid."
}
],
"documentation": [],
"alias": [
{
"code": "en-US",
"content": "format;pattern;stringify;to text;display;date;time;std"
}
],
"displayMessage": [
{
"code": "en-US",
"content": "Format ${date} as ${pattern}"
}
],
"deprecationMessage": [],
"displayIcon": "tabler:calendar-cog",
"signature": "(date: DATE, pattern: TEXT): TEXT",
"linkedDataTypeIdentifiers": [
"DATE",
"TEXT"
]
}
143 changes: 143 additions & 0 deletions definitions/taurus/date/runtime_functions/std_date_from.proto.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
{
"runtimeName": "std::date::from",
"runtimeParameterDefinitions": [
{
"runtimeName": "year",
"defaultValue": null,
"name": [
{
"code": "en-US",
"content": "Year"
}
],
"description": [
{
"code": "en-US",
"content": "The year of the date, for example 2026."
}
],
"documentation": []
},
{
"runtimeName": "month",
"defaultValue": null,
"name": [
{
"code": "en-US",
"content": "Month"
}
],
"description": [
{
"code": "en-US",
"content": "The month of the date."
}
],
"documentation": []
},
{
"runtimeName": "day",
"defaultValue": null,
"name": [
{
"code": "en-US",
"content": "Day"
}
],
"description": [
{
"code": "en-US",
"content": "The day of the month, ranging from 1 to 31."
}
],
"documentation": []
},
{
"runtimeName": "hour",
"defaultValue": null,
"name": [
{
"code": "en-US",
"content": "Hour"
}
],
"description": [
{
"code": "en-US",
"content": "The hour of the day, ranging from 0 to 23."
}
],
"documentation": []
},
{
"runtimeName": "minute",
"defaultValue": null,
"name": [
{
"code": "en-US",
"content": "Minute"
}
],
"description": [
{
"code": "en-US",
"content": "The minute of the hour, ranging from 0 to 59."
}
],
"documentation": []
},
{
"runtimeName": "second",
"defaultValue": null,
"name": [
{
"code": "en-US",
"content": "Second"
}
],
"description": [
{
"code": "en-US",
"content": "The second of the minute, ranging from 0 to 59."
}
],
"documentation": []
}
],
"throwsError": true,
"name": [
{
"code": "en-US",
"content": "Date from Components"
}
],
"description": [
{
"code": "en-US",
"content": "Creates a date from the given year, month, day, hour, minute and second. Throws an error if the combination does not represent a valid date."
}
],
"documentation": [],
"alias": [
{
"code": "en-US",
"content": "from;create;build;construct;date;year;month;day;time;std"
}
],
"displayMessage": [
{
"code": "en-US",
"content": "Date ${day} ${month} ${year} at ${hour}:${minute}:${second}"
}
],
"deprecationMessage": [],
"displayIcon": "tabler:calendar-plus",
"signature": "(year: NUMBER, month: MONTH, day: NUMBER, hour: HOUR, minute: MINUTE, second: NUMBER): DATE",
"linkedDataTypeIdentifiers": [
"DATE",
"NUMBER",
"MONTH",
"HOUR",
"MINUTE"
]
}
Loading