Skip to content
/ PSDates Public

PSDates provides a set of tools to help you better work with dates and times in PowerShell. It contains function to help you find specific date formats, get certain dates based on other dates (first/last day of the month or year, patch Tuesday, etc). I also has functions for working with timezones, unix time, WMI time, crontabs.

License

Notifications You must be signed in to change notification settings

mdowst/PSDates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PSDates

PSDates provides you all the tools you need when working with dates and times in PowerShell. It contains function to help you find specific date formats, get certain dates based on other dates (first/last day of the month or year, patch Tuesday, etc). I also has functions for working with timezones, unix time, WMI time, crontabs.

Installation

Install-Module PSDates

Commands

Cmdlet Synopsis
Convert-TimeZone Convert a datetime value from one time zone to another
Convert-ToDateTime Converts various input objects to a DateTime object.
ConvertFrom-UnixTime Converts a Unix Time value to a datetime value
ConvertFrom-WmiDateTime Converts a Wmi Time value to a datetime value
ConvertTo-UnixTime Converts a datetime value to Unix Time
ConvertTo-WmiDateTime Converts a datetime value to a Wmi datetime string
Find-TimeZone Returns Time Zone information
Get-CronDescription Convert a cron expression into a human readable description
Get-CronNextOccurrence Get the next occurrence for a crontab
Get-DateExtended Gets additional extended date values that are not included by default with the Get-Date cmdlet
Get-DateFormat Returns common date and time formats
Get-Easter This function offers a generic Easter computing method for any given year, using Western, Orthodox or Julian algorithms.
Get-PatchTuesday Returns the second Tuesday of the month
Get-SunTime Find sunrise and sunset times for any location on planet Earth.
Group-TimeSpan Groups objects by a specified time span.
Measure-TimeSpan Measures statistical properties (such as sum, average, and maximum) of a specified property within grouped time spans.
New-Duration Calculates the time span between two dates and returns the duration in the ISO 8601 format
Test-CrontabSchedule Tests that a crontab string is valid

About

PSDates provides a set of tools to help you better work with dates and times in PowerShell. It contains function to help you find specific date formats, get certain dates based on other dates (first/last day of the month or year, patch Tuesday, etc). I also has functions for working with timezones, unix time, WMI time, crontabs.

Resources

License

Stars

Watchers

Forks

Packages

No packages published