What is the equivalent of Javascript "Slice" in the editor?

… as the title states. If any.

Found a way to do it. Disregard the Question.

For anyone curious, i am trying to find the Century Code to a (or any) Year to calculate the Day of the Week at any given time in a Time System (which also requires Month Code, Year Code, Leap Year Code and a specified mday - all of which had been dealt with).

What i did was divide the year by 100 and use trunc() to get the Century Code.

For anyone who come across this post in the future, using trunc would still need hardcoding. The following is a better way to do it: