with Float and Formatting?
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
Format a date string to another date string. For more examples on formatting, see the Sugar Date Format documentation.
The Float API allows you to interact with Float's resource scheduling platform programmatically. With it, you can manage projects, tasks, people, and time off, as well as retrieve reports on workload and capacity. On Pipedream, the API can be leveraged to create automated workflows that link Float's scheduling capabilities with other apps, streamlining project management processes, syncing with calendars, and dynamically updating team schedules.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
float: {
type: "app",
app: "float",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.float.com/v3/accounts`,
headers: {
Authorization: `Bearer ${this.float.$auth.api_key}`,
"Accept": `application/json`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})