Skip to content

Commit

Permalink
Released 0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Apr 14, 2022
1 parent 43afeae commit 92df7a4
Show file tree
Hide file tree
Showing 6 changed files with 120 additions and 6 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

## [0.2.0] - 2022-04-14
### Added
- New function `Add-WorkingDays`

Expand Down Expand Up @@ -39,7 +41,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Initial release

[Unreleased]: https://github.com/codaamok/PSBusinessTime/compare/0.1.7..HEAD
[Unreleased]: https://github.com/codaamok/PSBusinessTime/compare/0.2.0..HEAD
[0.2.0]: https://github.com/codaamok/PSBusinessTime/compare/0.1.7..0.2.0
[0.1.7]: https://github.com/codaamok/PSBusinessTime/compare/0.1.6..0.1.7
[0.1.6]: https://github.com/codaamok/PSBusinessTime/compare/0.1.5..0.1.6
[0.1.5]: https://github.com/codaamok/PSBusinessTime/compare/0.1.4..0.1.5
Expand Down
106 changes: 106 additions & 0 deletions docs/Add-WorkingDays.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
---
external help file: PSBusinessTime-help.xml
Module Name: PSBusinessTime
online version:
schema: 2.0.0
---

# Add-WorkingDays

## SYNOPSIS
{{ Fill in the Synopsis }}

## SYNTAX

```
Add-WorkingDays [[-Date] <Object>] [-Days] <Int32> [[-NonWorkingDaysOfWeek] <String[]>]
[[-NonWorkingDates] <DateTime[]>] [<CommonParameters>]
```

## DESCRIPTION
{{ Fill in the Description }}

## EXAMPLES

### Example 1
```powershell
PS C:\> {{ Add example code here }}
```

{{ Add example description here }}

## PARAMETERS

### -Date
{{ Fill Date Description }}

```yaml
Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -Days
{{ Fill Days Description }}
```yaml
Type: Int32
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -NonWorkingDates
{{ Fill NonWorkingDates Description }}
```yaml
Type: DateTime[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -NonWorkingDaysOfWeek
{{ Fill NonWorkingDaysOfWeek Description }}
```yaml
Type: String[]
Parameter Sets: (All)
Aliases:
Accepted values: Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
## INPUTS
### None
## OUTPUTS
### System.Object
## NOTES
## RELATED LINKS
4 changes: 3 additions & 1 deletion docs/Get-ElapsedBusinessTime.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ Accept wildcard characters: False
### -FinishHour
The final hour of a typical working day.
The default final hour is 17:00.
Note: this parameter is a datetime object is, however only the time is used for calculation.
The date is ignored.
Expand All @@ -162,6 +162,8 @@ The days of the week, representated as strings e.g.
Days specified in this parameter will not be considered as working days.
Default values are Saturday and Sunday.
```yaml
Type: String[]
Parameter Sets: (All)
Expand Down
2 changes: 2 additions & 0 deletions docs/Get-WorkingDates.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ The days of the week, representated as strings e.g.
Days specified in this parameter will not be considered as working days.
Default values are Saturday and Sunday.
```yaml
Type: String[]
Parameter Sets: (All)
Expand Down
2 changes: 2 additions & 0 deletions docs/Test-WorkingDay.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ The days of the week, representated as strings e.g.
Days specified in this parameter will not be considered as working days.
Default values are Saturday and Sunday.
```yaml
Type: String[]
Parameter Sets: (All)
Expand Down
7 changes: 3 additions & 4 deletions src/PSBusinessTime.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'PSBusinessTime.psm1'

# Version number of this module.
ModuleVersion = '0.1.7'
ModuleVersion = '0.2.0'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down Expand Up @@ -107,9 +107,8 @@ PrivateData = @{
# IconUri = ''

# ReleaseNotes of this module
ReleaseNotes = '# Changed
- Test-WorkingDay now has parameter validation to ensure -StartHour is less then -FinishHour
- Get-ElapsedBusinessTime now has parameter validation to ensure -StartHour is less then -FinishHour'
ReleaseNotes = '# Added
- New function Add-WorkingDays'

# Prerelease string of this module
# Prerelease = ''
Expand Down

0 comments on commit 92df7a4

Please sign in to comment.