Skip to content

Eclalang/time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Time library

Go Report Card codecov

Candidate functions :

Func Name Prototype Description Comments
ConvertRoman ConvertRoman(str string) string {} Converts a number to a roman number N/A
Date Date(year, month, day, hour, min, sec int) string {} Returns a string representation of a date UTC Time
Now Now() string {} Returns a string representation of the current time N/A
Sleep Sleep(ms int | float64) {} Pauses the current goroutine for a specified number of milliseconds N/A
Strftime Strftime(format, date string) string {} Returns a string representation of a date according to a specified format N/A

Supported Conversion Formats :

Pattern Description
%d Day of the month as a decimal number (01-31)
%H Hour (24-hour clock) as a decimal number (00-23)
%M Minute as a decimal number (00-59)
%m Month as a decimal number (01-12)
%S Second as a decimal number (00-59)
%Y Year with century
%y Year without century (00-99)
%% A '%' sign

Constants variables :

Name Type Value
SECONDS int 1000
MINUTES int 60000
HOURS int 3600000

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages