ClockPro Extension For FREE

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

:one: Get Current Timestamp

long timestamp = CurrentTimestamp();

Returns the current time in milliseconds.

:two: 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.

:three: Add Days/Years to Timestamp


long newTimestamp = AddDays(timestamp, 10);
long futureTimestamp = AddYears(timestamp, 2);

Adds days or years to a given timestamp.

:four: Format Timestamp to Readable Date

String formattedDate = FormatISO(timestamp);

Converts a timestamp into a readable date string (yyyy-MM-dd HH:mm:ss).

:five: Calculate Days Between Two Dates

long difference = DateDifferenceDays(startTimestamp, endTimestamp);

Returns the number of days between two timestamps.

:six: Convert Timezone

long convertedTime = ConvertTimezone(timestamp, "UTC", "America/New_York");

Converts a timestamp from one timezone to another.

:seven: Start an Interval Timer

StartTimer(1000, true);

Starts a repeating timer that triggers the TimerTick event every second.

:eight: Validate Date Format

boolean isValid = ValidateDate("2024-02-19", "yyyy-MM-dd");

Checks if a date string follows the correct format.

:nine: 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:

  1. Import the extension.
  2. Use CurrentTimestamp() to get the current time.
  3. Convert and format timestamps as needed.
  4. Start timers and handle events.

image

πŸ“Œ Notes

βœ… Supports all Android versions.
βœ… Optimized for performance.
βœ… Lightweight and easy to use.

πŸ”₯ Download Now:

ClockPro.aix (12.3 KB)

2 Likes