Product Documentation
Cadence SKILL Language Reference
Product Version IC23.1, November 2023

stringToTime

stringToTime( 
t_time 
) 
=> x_time

Description

Given a date and time string, returns an integer time value representation. The time argument must be in the format as returned by the timeToString function, such as: June 28 16:57:06 2022.

All time conversion functions assume local time, not GMT time.

Arguments

t_time

String indicating a time and date in this format: "June 28 16:57:06 2022". This is the same format as returned by timeToString or getCurrentTime.

Value Returned

x_time

Integer time value.

Examples

fileTimeModified( "~/.cshrc" )
=> 793561559
timeToString(793561559)
=> "June 23 09:45:59 2022"
stringToTime("June 23 09:45:59 2022")
=> 793561559

Related Topics

Type Conversion Functions

timeToString


Return to top
 ⠀
X