time-span-converter
Reactive icon

Time Span Converter

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 31 August 2025
 by 
EONE TECHNOLOGIES PRIVATE LIMITED
0.0
 (0 ratings)
time-span-converter

Time Span Converter

Documentation
1.0.0

Key Features

✅ Converts DateTime into a friendly time format
✅ Supports both past and future time calculations
✅ Handles seconds, minutes, hours, days, months, and years
✅ Optimized for OutSystems Reactive and Mobile apps
✅ Lightweight, fast, and reusable


Use Cases

  • Displaying chat timestamps (e.g., “5 mins ago” or “in 10 mins”)

  • Showing notification timings (e.g., “2 hours ago”)

  • Event scheduling and countdowns (e.g., “Event starts in 3 days”)

  • Audit logs and history tracking

  • Activity feeds or timelines


Input Parameters

Parameter NameData TypeMandatoryDescription
DateTimeToConvertDateTimeYesThe input date and time that you want to convert into a human-readable relative time format.

Example Values:

  • 2025-08-30 10:15:00

  • 2025-09-05 14:00:00


Output Parameters

Parameter NameData TypeDescription
FormattedTimeSpanTextReturns a formatted string indicating how long ago the date occurred or how much time is remaining until that date.

Example Outputs:

  • If DateTimeToConvert = Now() - 45 seconds"Just now"

  • If DateTimeToConvert = Now() - 5 minutes"5 minutes ago"

  • If DateTimeToConvert = Now() + 2 hours"in 2 hours"

  • If DateTimeToConvert = Now() + 1 day"Tomorrow"

  • If DateTimeToConvert = Now() - 400 days"1 year ago"