B2Win Suite Documentation (Under Construction)
5.4
5.4
  • B2Win Suite Documentation
  • Scripting
    • B2Win Suite Scripting Overview
    • Scripting in B2Data
      • Custom Script Nodes
        • Custom Script
        • Source Script Node (File)
        • Source Script Node (Table)
        • Source Script Node (Object)
        • If-Else Condition
        • Condition Node
      • In DataPrep
      • Properties
      • Workflow Applications
        • Workflow #1
        • Workflow #2
    • Getting Started
    • Language Basics
    • Types & Objects
      • Primitives
      • Objects
        • Instant
        • LocalDateTime
        • LocalDate
        • LocalTime
        • JsonNode
        • ObjectNode
        • File
        • SuiteTable
        • Duration
      • Arrays & Maps
      • Row, Column, StringColumn
    • Utilities
      • Date & Time
        • InstantUtil
        • GeneralDateUtil
        • LocalDateTimeUtil
        • LocalDateUtil
        • LocalTimeUtil
        • Formatting
        • Timezones
      • Math
      • StrictMath
      • NumericUtil
      • DbUtil
      • DbExecutor
      • StateUtil
      • FileUtil
      • JsonUtil
      • HttpUtil
      • NodeInputReader
      • RandomUtil
      • HashingUtil
      • CompressionUtil
      • Logging
    • Properties
    • Context and System
      • Context
      • System
    • Configurations
      • Workflow Configuration
    • Tutorial
    • Feedback
  • B2Data
    • Workflow Settings
      • General Settings
      • Global/All Properties
      • Execution Configuration
        • General
        • Runtime
        • Compiler
        • Storage
        • Clean Up
      • Permissions
    • Nodes
      • Scheduler
    • Services Configuration
      • Power BI
Powered by GitBook
On this page
  1. Scripting
  2. Utilities
  3. Date & Time

LocalTimeUtil

LocalTimeUtil provides utility methods for working with LocalTime objects, specifically for parsing time strings.

Methods

parseTime(timeString: String): LocalTime

  • Parses a time string and returns a LocalTime object.

  • Parameters:

    • timeString (type: String) - The time string to parse.

  • Returns:

    • A LocalTime object representing the parsed time.

var timeString = "13:45:30";
var timeFormat = "HH:mm:ss";
var parsedTime = LocalTimeUtil.parseTime(timeString, timeFormat);
// returns LocalTime object 13:45:30

This class is useful for parsing time strings and converting them into LocalTime objects. It simplifies the process of working with time-related data. The actual implementation of this class may depend on the underlying libraries or code used in your environment.

PreviousLocalDateUtilNextFormatting

Last updated 1 year ago