Skip to content

Util.parse()

github-actions[bot] edited this page Sep 30, 2024 · 2 revisions

parses times from strings
type: Function

arguments:

  • time String

util.parse(5); // 5

util.parse("5s"); // 5

util.parse("5ms"); // 5000

util.parse("5m"); // 300

util.parse("5h"); // 18000

util.parse("5d"); // 432000

util.parse("5w"); // 3024000

util.parse("5y"); // 157680000


πŸ›ˆ Client

πŸ›ˆ AddonService

πŸ›ˆ AttachmentService

πŸ›ˆ ChannelService

πŸ›ˆ CommandService

πŸ›ˆ ComponentService

πŸ›ˆ ErrorService

πŸ›ˆ EventService

πŸ›ˆ ExpressionService

πŸ›ˆ GuildService

πŸ›ˆ LogService

πŸ›ˆ MessageService

πŸ›ˆ PermissionService

πŸ›ˆ RoleService

πŸ›ˆ StorageService

πŸ›ˆ TypeService

πŸ›ˆ UserService

πŸ›ˆ UtilService

πŸ›ˆ VoiceService


Clone this wiki locally