github.com/TrueBlocks/trueblocks-core/src/apps/chifra@v0.0.0-20241022031540-b362680128f7/internal/when/doc.go (about)

     1  // Copyright 2016, 2024 The TrueBlocks Authors. All rights reserved.
     2  // Use of this source code is governed by a license that can
     3  // be found in the LICENSE file.
     4  /*
     5   * Parts of this file were auto generated. Edit only those parts of
     6   * the code inside of 'EXISTING_CODE' tags.
     7   */
     8  
     9  // whenPkg implements the chifra when command.
    10  //
    11  // The chifra when tool answers one of two questions: (1) "At what date and time did a given block
    12  // occur?" or (2) "What block occurred at or before a given date and time?"
    13  //
    14  // In the first case, supply a block number or hash and the date and time of that block are displayed.
    15  // In the later case, supply a date (and optionally a time) and the block number that occurred at or
    16  // just prior to that date is displayed.
    17  //
    18  // The values for date and time are specified in JSON format. hour/minute/second are
    19  // optional, and if omitted, default to zero in each case. Block numbers may be specified as either
    20  // integers or hexadecimal number or block hashes. You may specify any number of dates and/or blocks
    21  // per invocation.
    22  package whenPkg