jrsonnet icon indicating copy to clipboard operation
jrsonnet copied to clipboard

Implement chrono Datetime in jrsonnet as a type so that it can be used in custom jrsonnet methods as a type and can be returned from jrsonnet method as a type

Open redoC-A2k opened this issue 2 months ago • 1 comments

For example suppose I have a method date /// Returns current date and time in utc #[builtin] fn date( dateTime: Option<String>, timeStamp: Option, year: Option, monthIndex: Option, day: Option, hours: Option, minutes: Option, seconds: Option, milliseconds: Option, ) Now I want to return chrono::Datetime from above method and then in another method suppose , #[builtin] fn format_date I want to take chrono::Datetime object/struct as argument and return string .

Please could you provide help ?

redoC-A2k avatar Jun 01 '24 05:06 redoC-A2k