G2A Many GEOs
SHARE
TWEET

MuteBase

okaz_ Jan 25th, 2020 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function timeomission(texttime: text) :: timespan:
  2.     if {_texttime} does not contain "hour" or "hours" or "minute" or "minutes" or "seconds" or "second" or "tick" or "ticks" or "day" or "days":
  3.         if {_texttime} contains "1" or "2" or "3" or "4" or "5" or "6" or "7" or "8" or "9" or "0":
  4.             if {_texttime} contains "d" or "h" or "t" or "m" or "s":
  5.                 loop 9 times:
  6.                     replace all "d%loop-number%" with "d %loop-number%" in {_texttime}
  7.                 loop 9 times:
  8.                     replace all "h%loop-number%" with "h %loop-number%" in {_texttime}
  9.                 loop 9 times:
  10.                     replace all "t%loop-number%" with "t %loop-number%" in {_texttime}
  11.                 loop 9 times:
  12.                     replace all "m%loop-number%" with "m %loop-number%" in {_texttime}
  13.                 loop 9 times:
  14.                     replace all "s%loop-number%" with "s %loop-number%" in {_texttime}
  15.                 if {_texttime} starts with " ":
  16.                     set {_texttime} to subtext of {_texttime} from characters 2 to (length of {_texttime})
  17.                 replace all "d" with " day" in {_texttime}
  18.                 replace all "h" with " hour" in {_texttime}
  19.                 replace all "t" with " tick" in {_texttime}
  20.                 replace all "m" with " minute" in {_texttime}
  21.                 replace all "s" with " second" in {_texttime}
  22.                 set {_texttime} to {_texttime} parsed as timespan
  23.                 return {_texttime}
  24.                 stop
  25.         return 0 tick
  26.         stop
  27.     set {_texttime} to {_texttime} parsed as timespan
  28.     return {_texttime}
  29.  
  30. function listtotext(list: objects) :: string:
  31.     loop {_list::*}:
  32.         if {_text} is not set:
  33.             set {_text} to "%loop-value%"
  34.         else:
  35.             set {_text} to "%{_text}%, %loop-value%"
  36.     return {_text}
RAW Paste Data
Ledger Nano X - The secure hardware wallet
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top