Add a method to convert skript date to java date
Fusezion opened this issue ยท 0 comments
Suggestion
As the title said, I'd like a method similar to timespan's toDuration for date converting skript's date object to a java date object (and vice versa if needed)
Why?
About an hour ago I started to work on a mild project and I end up needing to interact a lot between java's Date class and skript's Date class, and it's beginning to be annoying doing new JavaDate(value.getTimestamp())
and new Date(value.getTime())
over and over
Other
This is just a some qol thing for developers to more easily interact between the two
Agreement
- I have read the guidelines above and affirm I am following them with this suggestion.