Skip to content

Utilities

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

9 modules

ModuleDescription
Zaman EkleTarih saate zaman ekle
Tarih Saat BiçimlendirTarih saati dizeye biçimlendir
Tarih Saat AyrıştırDizeyi tarih saate ayrıştır
Zaman ÇıkarTarih saatten zaman çıkar
Geçerli Tarih/SaatGeçerli tarih ve saati al
Gecikme/Uykuİş akışı yürütmesini belirtilen süre boyunca duraklat
MD5 HashMetnin MD5 hash değerini hesapla
Rastgele SayıAralıkta rastgele sayı üret
Rastgele DizeRastgele dize veya UUID üret

Modules

Zaman Ekle

datetime.add

Tarih saate zaman ekle

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İşlem sonucu
timestampnumberİşlem sonucu

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

Tarih Saat Biçimlendir

datetime.format

Tarih saati dizeye biçimlendir

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İşlem sonucu
timestampnumberİşlem sonucu

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

Tarih Saat Ayrıştır

datetime.parse

Dizeyi tarih saate ayrıştır

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İşlem sonucu
timestampnumberİşlem sonucu
yearnumberİşlem sonucu
monthnumberUnix zaman damgası
daynumberYıl bileşeni
hournumberAy bileşeni
minutenumberGün bileşeni
secondnumberSaat bileşeni

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

Zaman Çıkar

datetime.subtract

Tarih saatten zaman çıkar

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İşlem sonucu
timestampnumberİşlem sonucu

Example: Subtract 7 days

yaml
datetime: now
days: 7

Example: Subtract 1 hour

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

Geçerli Tarih/Saat

utility.datetime.now

Geçerli tarih ve saati al

Parameters:

NameTypeRequiredDefaultDescription
formatselect (iso, unix, unix_ms, date, time, custom)NoisoÇıktı biçimi
custom_formatstringNo-Python strftime biçimi (format=custom ise)
timezonestringNoUTCPython strftime biçimi (format=custom ise)

Output:

FieldTypeDescription
statusstringSaat dilimi (varsayılan: UTC)
datetimestringİşlem durumu (success/error)
timestampnumberİşlem durumu (success/error)
isostringBiçimlendirilmiş tarih/saat

Example: Example

yaml
format: iso

Example: Example

yaml
format: unix

Gecikme/Uyku

utility.delay

İş akışı yürütmesini belirtilen süre boyunca duraklat

Parameters:

NameTypeRequiredDefaultDescription
duration_msnumberNo1000Milisaniye cinsinden bekleme süresi
duration_secondsnumberNo-Alternatif: saniye cinsinden süre

Output:

FieldTypeDescription
statusstringAlternatif: saniye cinsinden süre
waited_msnumberİşlem durumu (success/error)

Example: Example

yaml
duration_seconds: 2

Example: Example

yaml
duration_ms: 500

MD5 Hash

utility.hash.md5

Metnin MD5 hash değerini hesapla

Parameters:

NameTypeRequiredDefaultDescription
texttextYes-Hash'lenecek metin
encodingstringNoutf-8Hash'lenecek metin

Output:

FieldTypeDescription
statusstringMetin kodlaması
hashstringMetin kodlaması

Example: Example

yaml
text: Hello World

Rastgele Sayı

utility.random.number

Aralıkta rastgele sayı üret

Parameters:

NameTypeRequiredDefaultDescription
minnumberNo0Minimum değer (dahil)
maxnumberNo100Minimum değer (dahil)
decimalsnumberNo0Maksimum değer (dahil)

Output:

FieldTypeDescription
statusstringOndalık basamak sayısı (tam sayılar için 0)
valuenumberİşlem durumu (success/error)

Example: Example

yaml
min: 1
max: 100
decimals: 0

Example: Example

yaml
min: 0
max: 1
decimals: 2

Rastgele Dize

utility.random.string

Rastgele dize veya UUID üret

Parameters:

NameTypeRequiredDefaultDescription
lengthnumberNo16Dize uzunluğu
charsetselect (alphanumeric, letters, lowercase, uppercase, numbers, hex, uuid)NoalphanumericDize uzunluğu

Output:

FieldTypeDescription
statusstringİşlem durumu (success/error)
valuestringİşlem durumu (success/error)

Example: Example

yaml
length: 16
charset: alphanumeric

Example: Example

yaml
charset: uuid

Released under the Apache 2.0 License.