The net mail library - pf-lang/pipefish GitHub Wiki
An enum containing the days of the week.
The name and address of the addressee of an email.
The header and body of an email.
A data structure to pass to get ... from to get the current time.
Time = struct (year int, month int, day int, hour int, minute int, second int, nanosecond int, location string) :
A data structure representing a time.
Populates the reference variable with a Time representing the current time.
Extracts a list of Addresses from a header.
Parses a map to a Time.
Parses a string to an Address.
Parses a string to a Time.
Converts a raw string to a Message value.
Represents an Address as a string.
add(t, duration) returns the time t + duration, with the duration given in
nanoseconds.
addDate(t, years, months, days) returns the time corresponding to adding the given
number of years, months, and days to t.
after(t, u) reports whether the time instant t is after u.
before(t, u) reports whether the time instant t is before u.
compare(t, u) compares two times. The result is:
-
-1iftis beforeu -
0iftis equal tou -
+1iftis afteru
equal(t, u) reports whether t and u represent the same time instant.
format(t, layout) returns a textual representation of t formatted according to
layout.
isDst(t) reports whether t is in daylight saving time.
ISOWeek(t) returns the ISO 8601 year and week number in which t occurs.
isZero(t) reports whether t represents the zero time instant.
local(t) returns t with its location set to the local time zone.
parse(layout, value) parses a formatted time string and returns a Time
value.
parseDuration(s) parses a duration string.
round(t, duration) returns the result of rounding t to the nearest multiple of
duration since the zero time.
sub(t, u) returns the duration t - u.
timeIn(t, location) returns t represented in the given IANA time zone
location.
timeToUnix(t) returns the Unix time, the number of seconds elapsed since
January 1, 1970 UTC.
timeToUnixMicro(t) returns the Unix time in microseconds.
timeToUnixMilli(t) returns the Unix time in milliseconds.
timeToUnixNano(t) returns the Unix time in nanoseconds.
truncate(t, duration) returns the result of rounding t down to a
multiple of duration since the zero time.
unixToTime(sec, usec) returns the local Time corresponding to the given
Unix time.
unixMicroToTime(usec) returns the local Time corresponding to the given
Unix time expressed in microseconds.
unixMilliToTime(msec) returns the local Time corresponding to the given
Unix time expressed in milliseconds.
UTC(t) returns t with its location set to UTC.
weekday(t) returns the day of the week specified by t.
goWeekday(t) is an internal helper returning the weekday as an integer.
yearDay(t) returns the day of the year specified by t, in the range
1 through 365 or 366 inclusive.
This page is automatically generated from the Pipefish standard library. Any edits made directly to this wiki page will be overwritten the next time the documentation is regenerated.