LogoLogo
Release notesDocs homeFabricateTonic.ai
  • Tonic Fabricate User Guide
  • Fabricate workflow
  • Tutorial videos
  • Fabricate account
    • Getting started with Fabricate
    • Fabricate license plans
    • Managing your Fabricate account and profile
    • Managing users in your account
  • Databases
    • Supported database types
    • Creating and managing databases
  • Backing up and restoring the database definition
  • Configuring database variables
  • Exporting data from a database
  • Tables and columns
    • Managing database tables
      • Configuring table settings
      • Adding a table to a database
      • Removing a table from a database
      • Attaching static data to a table
      • Regenerating table data
  • Managing table columns
    • Adding and removing columns
    • Configuring a column
    • Generator reference
      • Calculated or related values
      • Data type and specific values
      • Names and other identifying information
      • Telephone numbers and email addresses
      • Geographic locations
      • Air travel
      • Natural science
      • Networks and files
      • Banking and finance
      • Dates and times
      • Vehicles
      • Companies and products
      • Healthcare and health insurance
      • Languages
      • Movies
      • Education
  • Views
    • Creating and managing views
    • Views reference
  • Workspaces
    • About workspaces
  • Creating and managing workspaces
  • Database mock API
    • About mock APIs
    • Defining a mock API
    • Creating and querying database snapshots
  • Mock API reference
  • Fabricate API and CLI
    • About the Fabricate API and CLI
    • Managing Fabricate API keys
    • Daily limits on generated data
    • Using the Fabricate API
      • Authentication for the API
      • Data model
      • Managing databases from the API
      • Generating data from the API
    • Using the Fabricate CLI
      • Setting up CLI access
      • Using the CLI to load data
Powered by GitBook
On this page
  • Datetime
  • Configuring an absolute datetime value
  • Configuring a relative datetime value
  • Configuring a series datetime value
  • Timezone (Global)
  • Timezone (US)
Export as PDF
  1. Managing table columns
  2. Generator reference

Dates and times

The following generators produce datetime values. Note that there are also category-specific generators that produce datetime values, such as a car model year or an IPO date.

Datetime

Populates the column with a datetime value.

From the Type dropdown, select the type of datetime value to generate:

  • Absolute - A datetime or date value.

  • Relative - A datetime or date value that occurs within a specified range of another datetime column.

  • Series - Populates the values as a series. For example, the timestamp for each subsequent row might occur 20 minutes after the previous row.

For all of the types, to only populate dates and exclude the times, check Date Only.

Configuring an absolute datetime value

For an absolute datetime value:

  1. From the Distribution dropdown list, select how to distribute the datetimes across the data. The available options are Normal and Uniform.

  2. For a uniform distribution:

    1. Under Start, select the earliest datetime to use.

    2. Under End, select the latest datetime to use.

  3. For a normal distribution:

    1. Under Centered on, select the datetime to use as the basis for the distribution.

    2. Under Min, select the minimum gap between the datetimes. The gap uses the value selected from Units.

    3. Under Mean, select the mean gap between the datetimes. The gap uses the value selected from Units.

    4. From the Units dropdown list, select the unit to use for the distribution.

    5. Under Std Dev, select the standard deviation for the gap between the datetimes. The gap uses the value selected from Units.

    6. Under Max, select the maximum gap between the datetimes. The gap uses the value selected from Units.

Configuring a relative datetime value

A relative datetime value sets the datetime relative to another datetime column. For example, set the end-date column within 6-12 months after the start-date column.

If the table does not contain another datetime column to use as the basis for the relative value, then you cannot use the relative datetime option.

For a relative datetime value, under Range:

  1. Set the minimum and maximum amount of time difference from the base datetime column.

  2. Select the unit of time to use for the time difference.

  3. Select whether the datetime for the current column occurs before or after the base datetime column.

  4. Select the datetime column to use as the base column.

Configuring a series datetime value

A series datetime value creates a regular series across the rows. For example, your table might represent a series of jobs that occur at regular intervals.

Selecting the starting point

First, select the starting point for the series.

To use a specific datetime as the starting point:

  1. From the Start At dropdown list, select Fixed.

  2. Set the start date and time.

To use the value of another datetime column as the starting point:

  1. From the Start At dropdown list, select from column.

  2. Select the datetime column to use. If the table does not contain another datetime column, then you cannot use the from column option.

Partitioning the data and setting the row order

You can partition the data. The time series is then within each partition. For example, you might want a separate series of datetimes for different departments or locations.

The order is used to sort the rows. The first row gets the earliest datetime in the series, the second row gets the next datetime, and so on.

To set up the partition:

  1. From the Partition By dropdown list, select the column to use to partition the data.

  2. From the Order By dropdown list, select the column to use to order the rows. If you partition the data, then the order is within the partition.

Setting the series interval

The Interval configuration determines the gap between the series values.

From the Distribution dropdown list, select the type of interval.

  • Fixed indicates an exact amount of time between each datetime.

  • Normal indicates a normal distribution of datetime values.

  • Uniform indicates a uniform distribution of the datetime values.

For all of the distribution types, from the Unit dropdown list, select the unit to use to set the amount of time between the values.

For a fixed distribution, in the Exactly field, specify the exact amount of time between each value. For example, the series values might be exactly 5 minutes apart.

For a normal distribution:

  1. In the Minimum field, set the minimum amount of time between values.

  2. In the Mean field, set the mean amount of time between values.

  3. In the Standard Deviation field, set the standard deviation for the amount of time between values.

  4. In the Maximum field, set the maximum amount of time between values.

Timezone (Global)

Populates the column with the name of a time zone from anywhere in the world. For example, Europe/Paris.

Timezone (US)

Populates the column with the name of a time zone that occurs in the United States. For example, US/Central.

Last updated 8 days ago

You can configure a .

You can also configure a to link the column to other columns.

You can configure a .

You can also configure a to link the column to other columns.

weighted distribution of the values
group key
weighted distribution of the values
group key