Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date and Time types and model functions #2598

Open
Tracked by #2572
tomhealey-icma opened this issue Dec 22, 2023 · 3 comments
Open
Tracked by #2572

Date and Time types and model functions #2598

tomhealey-icma opened this issue Dec 22, 2023 · 3 comments
Labels
meeting Regular Scheduled Meeting by a Committee or WG

Comments

@tomhealey-icma
Copy link
Contributor

To properly work with ISO date and time we need a low level time recordType. This will required low level changes to Rosetta DSL:

recordType time:
hour int
min int
sec int
msec int

recordType ISODateTime:
date
time
offset

We also need functions to convert to and from ISODateTime:

func FormatISODateTime:
inputs:
date date (1..1)
time time (1..1)
offset int (1..1)
formatType ISOFormatTypeEnum (0..1)
output:
isoDateTime string (1..1)
set IsoDateTime:
date->year + '-' + date->month + '-' +date-> day + 'T' + time->hour + ':' + time->min + ":" + time->sec + ":" + time->msec + "Z"

	...
	other formats 
	with UTC Offset : [+/-] offset

func ConvertISODateTime:
inputs:
isoDateTimeStr string (1..1)
output:
isoDateTime ISODateTime (1..1)

@tomhealey-icma
Copy link
Contributor Author

Meeting to be scheduled.

@hugohills-regnosys
Copy link
Contributor

Raised DSL issue to implement time as a record type finos/rune-dsl#725

@eteridvalishvili
Copy link
Contributor

eteridvalishvili commented Apr 30, 2024

Hi @tomhealey-icma Is the meeting scheduled? Can we close the issue if it has?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meeting Regular Scheduled Meeting by a Committee or WG
Projects
None yet
Development

No branches or pull requests

3 participants