BlPackage - getPackageDateCreated


BlPackage - getPackageDateCreated

Description :

This command gets the date the package was created.

Return type : java.util.Date

Command Input :

Variable Name

Variable Type

Description

pkgPath

String

Path to the package.

pkgName

String

Name of the package.

Example

The following example compares the date a package was created to the most recent date the package was modified, to see if anyone has changed the package since it was first created.

Script





DATE_CREATED=`blcli BlPackage getPackageDateCreated /Depot/Packages "Test Package"`

DATE_MODIFIED=`blcli BlPackage getPackageDateCreated /Depot/Packages "Test Package"`

if [ "$DATE_MODIFIED" = "$DATE_CREATED" ]

then

echo "Package is in it's initial state"

else

echo "Package has been modified since creation"

fi



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*