Skip to content

a utility library for processing information received from the pluralkit api, for use with my pk-who projects

License

Notifications You must be signed in to change notification settings

BarefootSelkie/pktools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pktools

A set of tools to deal with time conversion functions, some are used by my whois projects, but several of these are only really applicable to my headspace. As I have a base 6 time system and wanted to be able to display that information in the real world.

Implemented functions

rsSecondToFractal(rsSeconds) takes in a period of time in seconds and converts it to a number of headspace fractals, designed to work with datetime.total_seconds(), returns an int

hsFractalTohsTimeObject(hsFractals) converts an int of headspace fractals into a headspace date time object, returns [cycles, seasons, weeks, days, segments, fractals]

hsTimeNow() gets the current time in headspace based on zeropoint in apikeys.json, returns [cycles, seasons, weeks, days, segments, fractals]

hsTimeShort(hsTimeObject)

hsTimeHuman(hsTimeObject)

rsLastSeen(member)

hsLastSeen(member)

rsSinceLastIn(member)

hsSinceLastIn(member)

About

a utility library for processing information received from the pluralkit api, for use with my pk-who projects

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages