The Way to build Real-time Data Products
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.
Tinybird is a real-time analytics API platform that allows developers to ingest, transform, and consume large amounts of data with low latency. By leveraging SQL and data streaming, Tinybird helps in building data-intensive applications or augmenting existing ones with real-time analytics features. On Pipedream, you can automate data ingestion, transformation, and delivery to unlock insights and drive actions in real time, transforming how you respond to user behavior and operational events.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
tinybird: {
type: "app",
app: "tinybird",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://api.tinybird.co/v0/tokens`,
headers: {
Authorization: `Bearer ${this.tinybird.$auth.token}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})