Skip to content

Commit

Permalink
added epoch functions (#6388)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmoore-msft authored Apr 8, 2022
1 parent 76cac38 commit d256d61
Show file tree
Hide file tree
Showing 52 changed files with 3,322 additions and 1,310 deletions.
2,658 changes: 1,348 additions & 1,310 deletions src/Bicep.Core.Samples/Files/Functions/sys.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,46 @@
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "dateTimeFromEpoch",
"kind": "function",
"documentation": {
"kind": "markdown",
"value": "```bicep\ndateTimeFromEpoch([epochTime: int]): string\n\n```\nConverts an epoch time integer value to an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) dateTime string.\n"
},
"deprecated": false,
"preselect": false,
"sortText": "3_dateTimeFromEpoch",
"insertTextFormat": "snippet",
"insertTextMode": "adjustIndentation",
"textEdit": {
"range": {},
"newText": "dateTimeFromEpoch($0)"
},
"command": {
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "dateTimeToEpoch",
"kind": "function",
"documentation": {
"kind": "markdown",
"value": "```bicep\ndateTimeToEpoch([dateTime: string]): int\n\n```\nConverts an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) dateTime string to an epoch time integer value.\n"
},
"deprecated": false,
"preselect": false,
"sortText": "3_dateTimeToEpoch",
"insertTextFormat": "snippet",
"insertTextMode": "adjustIndentation",
"textEdit": {
"range": {},
"newText": "dateTimeToEpoch($0)"
},
"command": {
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "deployment",
"kind": "function",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,46 @@
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "dateTimeFromEpoch",
"kind": "function",
"documentation": {
"kind": "markdown",
"value": "```bicep\ndateTimeFromEpoch([epochTime: int]): string\n\n```\nConverts an epoch time integer value to an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) dateTime string.\n"
},
"deprecated": false,
"preselect": false,
"sortText": "3_dateTimeFromEpoch",
"insertTextFormat": "snippet",
"insertTextMode": "adjustIndentation",
"textEdit": {
"range": {},
"newText": "dateTimeFromEpoch($0)"
},
"command": {
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "dateTimeToEpoch",
"kind": "function",
"documentation": {
"kind": "markdown",
"value": "```bicep\ndateTimeToEpoch([dateTime: string]): int\n\n```\nConverts an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) dateTime string to an epoch time integer value.\n"
},
"deprecated": false,
"preselect": false,
"sortText": "3_dateTimeToEpoch",
"insertTextFormat": "snippet",
"insertTextMode": "adjustIndentation",
"textEdit": {
"range": {},
"newText": "dateTimeToEpoch($0)"
},
"command": {
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "empty",
"kind": "function",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,46 @@
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "dateTimeFromEpoch",
"kind": "function",
"documentation": {
"kind": "markdown",
"value": "```bicep\ndateTimeFromEpoch([epochTime: int]): string\n\n```\nConverts an epoch time integer value to an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) dateTime string.\n"
},
"deprecated": false,
"preselect": false,
"sortText": "3_dateTimeFromEpoch",
"insertTextFormat": "snippet",
"insertTextMode": "adjustIndentation",
"textEdit": {
"range": {},
"newText": "dateTimeFromEpoch($0)"
},
"command": {
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "dateTimeToEpoch",
"kind": "function",
"documentation": {
"kind": "markdown",
"value": "```bicep\ndateTimeToEpoch([dateTime: string]): int\n\n```\nConverts an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) dateTime string to an epoch time integer value.\n"
},
"deprecated": false,
"preselect": false,
"sortText": "3_dateTimeToEpoch",
"insertTextFormat": "snippet",
"insertTextMode": "adjustIndentation",
"textEdit": {
"range": {},
"newText": "dateTimeToEpoch($0)"
},
"command": {
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "deployment",
"kind": "function",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,46 @@
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "dateTimeFromEpoch",
"kind": "function",
"documentation": {
"kind": "markdown",
"value": "```bicep\ndateTimeFromEpoch([epochTime: int]): string\n\n```\nConverts an epoch time integer value to an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) dateTime string.\n"
},
"deprecated": false,
"preselect": false,
"sortText": "3_dateTimeFromEpoch",
"insertTextFormat": "snippet",
"insertTextMode": "adjustIndentation",
"textEdit": {
"range": {},
"newText": "dateTimeFromEpoch($0)"
},
"command": {
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "dateTimeToEpoch",
"kind": "function",
"documentation": {
"kind": "markdown",
"value": "```bicep\ndateTimeToEpoch([dateTime: string]): int\n\n```\nConverts an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) dateTime string to an epoch time integer value.\n"
},
"deprecated": false,
"preselect": false,
"sortText": "3_dateTimeToEpoch",
"insertTextFormat": "snippet",
"insertTextMode": "adjustIndentation",
"textEdit": {
"range": {},
"newText": "dateTimeToEpoch($0)"
},
"command": {
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "deployment",
"kind": "function",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,46 @@
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "dateTimeFromEpoch",
"kind": "function",
"documentation": {
"kind": "markdown",
"value": "```bicep\ndateTimeFromEpoch([epochTime: int]): string\n\n```\nConverts an epoch time integer value to an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) dateTime string.\n"
},
"deprecated": false,
"preselect": false,
"sortText": "3_dateTimeFromEpoch",
"insertTextFormat": "snippet",
"insertTextMode": "adjustIndentation",
"textEdit": {
"range": {},
"newText": "dateTimeFromEpoch($0)"
},
"command": {
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "dateTimeToEpoch",
"kind": "function",
"documentation": {
"kind": "markdown",
"value": "```bicep\ndateTimeToEpoch([dateTime: string]): int\n\n```\nConverts an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) dateTime string to an epoch time integer value.\n"
},
"deprecated": false,
"preselect": false,
"sortText": "3_dateTimeToEpoch",
"insertTextFormat": "snippet",
"insertTextMode": "adjustIndentation",
"textEdit": {
"range": {},
"newText": "dateTimeToEpoch($0)"
},
"command": {
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "deployment",
"kind": "function",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,46 @@
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "dateTimeFromEpoch",
"kind": "function",
"documentation": {
"kind": "markdown",
"value": "```bicep\ndateTimeFromEpoch([epochTime: int]): string\n\n```\nConverts an epoch time integer value to an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) dateTime string.\n"
},
"deprecated": false,
"preselect": false,
"sortText": "3_dateTimeFromEpoch",
"insertTextFormat": "snippet",
"insertTextMode": "adjustIndentation",
"textEdit": {
"range": {},
"newText": "dateTimeFromEpoch($0)"
},
"command": {
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "dateTimeToEpoch",
"kind": "function",
"documentation": {
"kind": "markdown",
"value": "```bicep\ndateTimeToEpoch([dateTime: string]): int\n\n```\nConverts an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) dateTime string to an epoch time integer value.\n"
},
"deprecated": false,
"preselect": false,
"sortText": "3_dateTimeToEpoch",
"insertTextFormat": "snippet",
"insertTextMode": "adjustIndentation",
"textEdit": {
"range": {},
"newText": "dateTimeToEpoch($0)"
},
"command": {
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "deployment",
"kind": "function",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,46 @@
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "dateTimeFromEpoch",
"kind": "function",
"documentation": {
"kind": "markdown",
"value": "```bicep\ndateTimeFromEpoch([epochTime: int]): string\n\n```\nConverts an epoch time integer value to an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) dateTime string.\n"
},
"deprecated": false,
"preselect": false,
"sortText": "3_dateTimeFromEpoch",
"insertTextFormat": "snippet",
"insertTextMode": "adjustIndentation",
"textEdit": {
"range": {},
"newText": "dateTimeFromEpoch($0)"
},
"command": {
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "dateTimeToEpoch",
"kind": "function",
"documentation": {
"kind": "markdown",
"value": "```bicep\ndateTimeToEpoch([dateTime: string]): int\n\n```\nConverts an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) dateTime string to an epoch time integer value.\n"
},
"deprecated": false,
"preselect": false,
"sortText": "3_dateTimeToEpoch",
"insertTextFormat": "snippet",
"insertTextMode": "adjustIndentation",
"textEdit": {
"range": {},
"newText": "dateTimeToEpoch($0)"
},
"command": {
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "deployment",
"kind": "function",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,46 @@
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "dateTimeFromEpoch",
"kind": "function",
"documentation": {
"kind": "markdown",
"value": "```bicep\ndateTimeFromEpoch([epochTime: int]): string\n\n```\nConverts an epoch time integer value to an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) dateTime string.\n"
},
"deprecated": false,
"preselect": false,
"sortText": "3_dateTimeFromEpoch",
"insertTextFormat": "snippet",
"insertTextMode": "adjustIndentation",
"textEdit": {
"range": {},
"newText": "dateTimeFromEpoch($0)"
},
"command": {
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "dateTimeToEpoch",
"kind": "function",
"documentation": {
"kind": "markdown",
"value": "```bicep\ndateTimeToEpoch([dateTime: string]): int\n\n```\nConverts an [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) dateTime string to an epoch time integer value.\n"
},
"deprecated": false,
"preselect": false,
"sortText": "3_dateTimeToEpoch",
"insertTextFormat": "snippet",
"insertTextMode": "adjustIndentation",
"textEdit": {
"range": {},
"newText": "dateTimeToEpoch($0)"
},
"command": {
"command": "editor.action.triggerParameterHints"
}
},
{
"label": "deployment",
"kind": "function",
Expand Down
Loading

0 comments on commit d256d61

Please sign in to comment.