Skip to content

Utilities

Datetime operations, delay, MD5 hash, and random utilities.

9 modules

ModuleDescription
시간 추가날짜/시간에 시간 추가
날짜/시간 포맷날짜/시간을 문자열로 포맷
날짜/시간 파싱문자열을 날짜/시간으로 파싱
시간 빼기날짜/시간에서 시간 빼기
현재 날짜/시간현재 날짜와 시간 가져오기
지연/슬립지정된 시간 동안 워크플로우 실행 일시 중지
MD5 해시텍스트의 MD5 해시 계산
난수범위 내 난수 생성
랜덤 문자열랜덤 문자열 또는 UUID 생성

Modules

시간 추가

datetime.add

날짜/시간에 시간 추가

Parameters:

NameTypeRequiredDefaultDescription
datetimestringNonowEnter "now" for current time, or ISO 8601 format (e.g., 2024-01-30T14:30:00)
daysnumberNo0Number of days to add (positive) or subtract (negative)
hoursnumberNo0Number of hours to add (positive) or subtract (negative)
minutesnumberNo0Number of minutes to add (positive) or subtract (negative)
secondsnumberNo0Number of seconds to add (positive) or subtract (negative)

Output:

FieldTypeDescription
resultstring작업 결과
timestampnumber작업 결과

Example: Add 7 days

yaml
datetime: now
days: 7

Example: Add 2 hours 30 minutes

yaml
datetime: 2024-01-15T10:00:00
hours: 2
minutes: 30

날짜/시간 포맷

datetime.format

날짜/시간을 문자열로 포맷

Parameters:

NameTypeRequiredDefaultDescription
datetimestringNonowEnter "now" for current time, or ISO 8601 format (e.g., 2024-01-30T14:30:00)
formatselect (%Y-%m-%d, %Y-%m-%d %H:%M:%S, %Y/%m/%d, %d/%m/%Y, %m/%d/%Y, %Y年%m月%d日, %B %d, %Y, %d %b %Y, %H:%M:%S, %H:%M, %I:%M %p, %Y%m%d, %Y-%m-%dT%H:%M:%SZ, %a, %d %b %Y %H:%M:%S)No%Y-%m-%d %H:%M:%SSelect a format or enter custom strftime pattern

Output:

FieldTypeDescription
resultstring작업 결과
timestampnumber작업 결과

Example: Format current time

yaml
datetime: now
format: %Y-%m-%d %H:%M:%S

Example: Custom date format

yaml
datetime: 2024-01-15T10:30:00
format: %B %d, %Y

날짜/시간 파싱

datetime.parse

문자열을 날짜/시간으로 파싱

Parameters:

NameTypeRequiredDefaultDescription
datetime_stringstringYes-DateTime string to parse (ISO 8601 format recommended)
formatselect (%Y-%m-%d, %Y-%m-%d %H:%M:%S, %Y/%m/%d, %d/%m/%Y, %m/%d/%Y, %Y年%m月%d日, %B %d, %Y, %d %b %Y, %H:%M:%S, %H:%M, %I:%M %p, %Y%m%d, %Y-%m-%dT%H:%M:%SZ, %a, %d %b %Y %H:%M:%S)No%Y-%m-%d %H:%M:%SSelect a format or enter custom strftime pattern

Output:

FieldTypeDescription
resultstring작업 결과
timestampnumber작업 결과
yearnumber작업 결과
monthnumberUnix 타임스탬프
daynumber연도 구성요소
hournumber월 구성요소
minutenumber일 구성요소
secondnumber시 구성요소

Example: Parse ISO format

yaml
datetime_string: 2024-01-15T10:30:00

Example: Parse custom format

yaml
datetime_string: January 15, 2024
format: %B %d, %Y

시간 빼기

datetime.subtract

날짜/시간에서 시간 빼기

Parameters:

NameTypeRequiredDefaultDescription
datetimestringNonowEnter "now" for current time, or ISO 8601 format (e.g., 2024-01-30T14:30:00)
daysnumberNo0Number of days to add (positive) or subtract (negative)
hoursnumberNo0Number of hours to add (positive) or subtract (negative)
minutesnumberNo0Number of minutes to add (positive) or subtract (negative)
secondsnumberNo0Number of seconds to add (positive) or subtract (negative)

Output:

FieldTypeDescription
resultstring작업 결과
timestampnumber작업 결과

Example: Subtract 7 days

yaml
datetime: now
days: 7

Example: Subtract 1 hour

yaml
datetime: 2024-01-15T10:00:00
hours: 1

현재 날짜/시간

utility.datetime.now

현재 날짜와 시간 가져오기

Parameters:

NameTypeRequiredDefaultDescription
formatselect (iso, unix, unix_ms, date, time, custom)Noiso출력 형식
custom_formatstringNo-Python strftime 형식 (format=custom인 경우)
timezonestringNoUTCPython strftime 형식 (format=custom인 경우)

Output:

FieldTypeDescription
statusstring시간대 (기본값: UTC)
datetimestring작업 상태 (성공/오류)
timestampnumber작업 상태 (성공/오류)
isostring포맷된 날짜/시간

Example: Example

yaml
format: iso

Example: Example

yaml
format: unix

지연/슬립

utility.delay

지정된 시간 동안 워크플로우 실행 일시 중지

Parameters:

NameTypeRequiredDefaultDescription
duration_msnumberNo1000밀리초 단위 대기 시간
duration_secondsnumberNo-대안: 초 단위 지속 시간

Output:

FieldTypeDescription
statusstring대안: 초 단위 지속 시간
waited_msnumber작업 상태 (성공/오류)

Example: Example

yaml
duration_seconds: 2

Example: Example

yaml
duration_ms: 500

MD5 해시

utility.hash.md5

텍스트의 MD5 해시 계산

Parameters:

NameTypeRequiredDefaultDescription
texttextYes-해시할 텍스트
encodingstringNoutf-8해시할 텍스트

Output:

FieldTypeDescription
statusstring텍스트 인코딩
hashstring텍스트 인코딩

Example: Example

yaml
text: Hello World

난수

utility.random.number

범위 내 난수 생성

Parameters:

NameTypeRequiredDefaultDescription
minnumberNo0최소값 (포함)
maxnumberNo100최소값 (포함)
decimalsnumberNo0최대값 (포함)

Output:

FieldTypeDescription
statusstring소수점 자릿수 (정수는 0)
valuenumber작업 상태 (성공/오류)

Example: Example

yaml
min: 1
max: 100
decimals: 0

Example: Example

yaml
min: 0
max: 1
decimals: 2

랜덤 문자열

utility.random.string

랜덤 문자열 또는 UUID 생성

Parameters:

NameTypeRequiredDefaultDescription
lengthnumberNo16문자열 길이
charsetselect (alphanumeric, letters, lowercase, uppercase, numbers, hex, uuid)Noalphanumeric문자열 길이

Output:

FieldTypeDescription
statusstring작업 상태 (성공/오류)
valuestring작업 상태 (성공/오류)

Example: Example

yaml
length: 16
charset: alphanumeric

Example: Example

yaml
charset: uuid

Released under the Apache 2.0 License.