All Downloads are FREE. Search and download functionalities are using the official Maven repository.

examples.bindings.date.yaml Maven / Gradle / Ivy

There is a newer version: 3.12.99
Show newest version
# You can run this file with this command line to see the values printed to stdout:
# ./ebdse run driver=stdout yaml=bindings/date.yaml cycles=10

# This file demonstrates different types of timestamp recipes
# that you can use with virtdata. (The bindings used in ebdse)

# If you want to control the output, uncomment and edit the statement template below
# and modify the named anchors to suit your output requirements.

#statements:
#  example1: "{fullname}\n"

bindings:
# All uncommented lines under this are indented, so they become named bindings below
# the entry above

# Normally, the value that you get with a cycle starts at 0.

 cycleNum: Identity();

# here we convert the cycle number to a Date by casting.

 id: Identity(); ToDate();

#  Date during 2017 (number of milliseconds in a year: 31,536,000,000)
 date: StartingEpochMillis('2017-01-01 23:59:59'); AddHashRange(0L,31536000000L); StringDateWrapper("YYYY-MM-dd")

#  Example output:

#  date : 2017-09-17
#  date : 2017-08-01
#  date : 2017-04-22
#  date : 2017-04-09
#  date : 2017-05-28
#  date : 2017-08-06
#  date : 2017-07-05
#  date : 2017-02-07
#  date : 2017-05-25
#  date : 2017-12-02




© 2015 - 2025 Weber Informatics LLC | Privacy Policy