utils/TimeDateUtils.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<#
.Synopsis
    Utility function to Show differnt Type of Information to the console
.DESCRIPTION
   This function takes the cluster DNS name and type and fetches the relevant Hadoop configs
    
.EXAMPLE
    ## To be added.
     
.LINK
    https://github.com/mabushaireh/HDICloner
#>



function Get-TimeStampUtcNWS()
{
    $timestamp = Get-Date -Format "yyyyMMdd_hhmmmss"

    return $timestamp;
}

function Get-TimeStampUtc()
{
    $timestamp = Get-Date -Format "yyyyMMdd hh:mmm:ss"

    return $timestamp;
}