Skip to content

Feature request: timestamp  #1

@ReeceWeb

Description

@ReeceWeb

I suspect one common use for an RTC on Arduino is timestamps for logs (that is how I plan to use it). It would be handy to have a variant of stringDate() that returns both date and time in a sort-friendly format (similar to ISO 8601). e.g.:

char* stringTimestamp(); //Return date & time in yyyy-mm-dd_hh:mm:ss.ss

This would require a static 23B array if coded like the other string functions, but you could combine date[11] and time[11] and timestamp[23] into a single shared array and not take up any additional RAM, with the side effect that the most recent use would overwrite the previous use.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions