ChronoMaster: Ultimate Date & Time Management Extension
Version: 3
Category: Extension
Visibility: Non-Visible
Description: ChronoMaster provides advanced date and time management functions for your applications.
π₯ Download
β‘ClockPro.aix (12.3 KB)
π οΈ Features
- Retrieve and manipulate timestamps.
- Extract date components like year, month, and day.
- Add or subtract time units (days, months, years).
- Format and parse dates in custom formats.
- Convert timezones and calculate date differences.
- Run interval timers with events.
- Validate date formats.
- Localized date formatting.
π Functions & Usage
Get Current Timestamp
long timestamp = CurrentTimestamp();
Returns the current time in milliseconds.
Extract Year, Month, Day
int year = GetYear(timestamp);
int month = GetMonth(timestamp);
int day = GetDay(timestamp);
Extracts the year, month, and day from a timestamp.
Add Days/Years to Timestamp
long newTimestamp = AddDays(timestamp, 10);
long futureTimestamp = AddYears(timestamp, 2);
Adds days or years to a given timestamp.
Format Timestamp to Readable Date
String formattedDate = FormatISO(timestamp);
Converts a timestamp into a readable date string (yyyy-MM-dd HH:mm:ss).
Calculate Days Between Two Dates
long difference = DateDifferenceDays(startTimestamp, endTimestamp);
Returns the number of days between two timestamps.
Convert Timezone
long convertedTime = ConvertTimezone(timestamp, "UTC", "America/New_York");
Converts a timestamp from one timezone to another.
Start an Interval Timer
StartTimer(1000, true);
Starts a repeating timer that triggers the TimerTick event every second.
Validate Date Format
boolean isValid = ValidateDate("2024-02-19", "yyyy-MM-dd");
Checks if a date string follows the correct format.
Get Month Name in a Specific Locale
String monthName = GetMonthName(2, "fr");
Returns the month name (e.g., βFΓ©vrierβ in French).
π’ Events
- TimerTick() - Triggered at each interval when the timer is active.
π§ Example Usage
Kodular Example:
- Import the extension.
- Use
CurrentTimestamp()
to get the current time. - Convert and format timestamps as needed.
- Start timers and handle events.
π Notes
β Supports all Android versions.β Optimized for performance.
β Lightweight and easy to use.
π₯ Download Now:
ClockPro.aix (12.3 KB)