Create a utility method for creating a DWN compatible timestamp
thehenrytsai opened this issue · comments
Background:
When creating a message, there is ability to supply your own timestamp in IOS 8601 format with microsecond precision, but we don't provide a utility method for this.
Task Details:
Create a utility method for creating a timestamp accepted by DWN.
A potential method signature:
/**
* Creates a UTC ISO-8601 timestamp in microsecond precision accepted by DWN.
*/
public static createTimestamp(year: number, month: number, day: number, hour: number:, minute: number, second: number, subsecond: number): string {
...
}
For implementation reference you can check out this test utility.
Picking Up This Issue:
- If you'd like to work on this, please comment "picking this up" below, and I'll assign the issue to you
Questions:
- If you need assistance or clarification, feel free to comment below.
- Feeling overwhelmed? Join our
#hack-together
channel and collaborate with a buddy. - New to open-source? Check out our Hacktober
#getting-started
channel. - Leaderboard: Check your ranking after finishing this task.
Resources:
- Creating a Pull Request: If you're new to GitHub and unsure how to create a pull request, follow this step-by-step guide.
Remember, communication is key! If you have any questions or face any challenges, we're here to help so please don't hesitate to reach out.
Good Luck! 🍁
picking this up
@Dhoni77 just seeing if you are still wanting to work on this. If not, I'm happy to pick it up!
@EbonyLouis
@Dhoni77 just seeing if you are still wanting to work on this. If not, I'm happy to pick it up! @EbonyLouis
Hi @flothjl you can pick it👍
This is now done.