Common |
The CommonFunctions type exposes the following members.
Name | Description | |
---|---|---|
![]() ![]() | DateTime2OdataDateTime | Convert a DateTime to the nullable datetime format used by odata. |
![]() ![]() | DateTime2SomDateTime | Convert a DateTime to the string format used by Scanjour SOM. |
![]() ![]() | EqualDateTimes | Tests whether two DateTime values are equal within the rounding errors that can occur if a DateTime is written to the SOM database and read back again. |
![]() ![]() | GetBytesInMegaBytesFormatted | Converts bytes to Mega bytes and formats with 2 decimals |
![]() ![]() | GetDatabasesFromRegistry | Gets the installed databases from registry. |
![]() ![]() | GetHostBaseUri | Get base Uri of host for database. |
![]() ![]() | GetHostName | Gets the name of the current host. |
![]() ![]() | GetLargestDateTime | Return the smallest datetime in the list |
![]() ![]() | GetNextFutureDateTime | Return the smallest datetime in the list |
![]() ![]() | GetODataUris(Boolean) | Obsolete. |
![]() ![]() | GetODataUris(Uri) | Gets OData URIs based on input contentServerUri or environment variable. |
![]() ![]() | IsProcessInstalled | Check if process is installed in a database. |
![]() ![]() | IsProductionDatabase | Check if a database is a production or historic database. |
![]() ![]() | OdataDateTime2DateTime | Convert nullable DateTime to DateTime format used by Som. |
![]() ![]() | OdataTimeSpan2TimeSpan | Convert Scanjour SOM string representation of a TimeSpan to TimeSpan. |
![]() ![]() | Round | Round to nearest second |
![]() ![]() | SomDateTime2DateTime | Convert Scanjour SOM string representation of a DateTime to DateTime. |
![]() ![]() | SomTimeSpan2TimeSpan | Convert Scanjour SOM string representation of a TimeSpan to TimeSpan. |
![]() ![]() | TimeSpan2OdataTimeSpan | Convert a TimeSpan to the string format used by odata. |
![]() ![]() | TimeSpan2SomTimeSpan | Convert a TimeSpan to the string format used by Scanjour SOM. |
![]() ![]() | ToLocalTime | Converts a DateTime to local DateTime. |
![]() ![]() | TruncateString | Shortens a string to the maximum length specified. |