Skip to content
This repository has been archived by the owner on May 7, 2023. It is now read-only.

Commit

Permalink
Add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
synw committed Mar 28, 2020
1 parent 504ee68 commit 433dd88
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion lib/src/type.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// Get typed data from a value
dynamic castTypeForValue(dynamic value, Type colType) {
dynamic v;
switch (colType) {
Expand All @@ -15,4 +16,14 @@ dynamic castTypeForValue(dynamic value, Type colType) {
return v;
}

enum TimestampFormat { seconds, milliseconds, microseconds }
/// The format to use for timestamps
enum TimestampFormat {
/// Timestamp in seconds from epoch
seconds,

/// Timestamp in milliseconds from epoch
milliseconds,

/// Timestamp in microseconds from epoch
microseconds
}

0 comments on commit 433dd88

Please sign in to comment.