Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add net ticks documentation #186

Merged
merged 2 commits into from
May 3, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 11 additions & 0 deletions doc/general/function-structures/function-structures.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,14 @@ Stream stream = proxy.Journal(ftJournalType, 0, DateTime.UtcNow.Ticks);
```

A list with possible values for the request parameter ftJournalType is provided in the reference the table ["Type of Journal: ftJournalType"](../reference-tables/reference-tables.md#t-type-of-signature-ftsignaturetype-127). The journal depends on national requirements and therefore the function has to run in the appropriate mode: exporting data in chunks, or as a whole.

##### Timestamps

The journal function expects the timestamps to be [.NET Ticks](https://docs.microsoft.com/en-us/dotnet/api/system.datetime.ticks?view=net-5.0#remarks).

The following convertion formulas can be used to convert between unix time and .NET Ticks:

| Conversion | Formula |
|------------------------|--------------------------------------------|
| `unix time` -> `Ticks` | `621355968000000000 + unixtime * 10000000` |
| `Ticks` -> `unix time` | `(ticks - 621355968000000000) / 10000000` |