slack_post_time: A function to return time messages.

Description Usage Arguments Value

Description

These messages are displayed publically so everyone knows what time the user input.

Usage

1
slack_post_time(user_given, time, shift)

Arguments

user_given

A user's first (given) name.

time

Either an integer corresponding to a number of seconds elapsed (e.g., 42 or 142), or a character string in the form:

  • HH:MM:SS (e.g. "01:23:45")

  • MM:SS (e.g. "23:45")

  • SS (e.g. "45")

Any any number of hours, minutes, or seconds are valid (i.e., "0:03", "000:3", "3", and "00:00:03" are all valid ways to input three seconds).

shift

An integer to define the number of days by which the data entry date should be shifted. Default is 0. The day after today (tomorrow) is +1, yesterday is -1, etc.

Value

A bespoke message


bochocki/slackrsheets documentation built on May 8, 2019, 9:46 a.m.