Skip to content

Replacing Date #9

Closed
Closed
@fabianfett

Description

@fabianfett

We need to discuss how we want to replace Date if we don't want to link against Foundation at all. The problem is that we get a Deadline from AWS:

Lambda-Runtime-Deadline-Ms – The date that the function times out in Unix time milliseconds.
Source: https://docs.aws.amazon.com/lambda/latest/dg/runtimes-api.html

Users of this library might want to know how much time they have left to execute their function. Since I can't see a way to get access to the Unix time in milliseconds, it seems like we have to import <time.h>.

https://pubs.opengroup.org/onlinepubs/7908799/xsh/clock_gettime.html

I've never wrapped a C call before, so this is something I'd be interested in trying if this is a way forward for us.

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