• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Dapplo.Jira
    • AgileExtensions
    • AttachmentExtensions
    • FilterExtensions
    • IJiraClient
    • IssueExtensions
    • JiraClient
    • JiraConfig
    • JiraException
    • ProjectExtensions
    • ServerExtensions
    • SessionExtensions
    • TimeSpanExtensions
    • UserExtensions
    • WorkExtensions
  • Dapplo.Jira.Domains
    • IAgileDomain
    • IAttachmentDomain
    • IFilterDomain
    • IIssueDomain
    • IJiraDomain
    • IProjectDomain
    • IServerDomain
    • ISessionDomain
    • IUserDomain
    • IWorkDomain
  • Dapplo.Jira.Entities
    • AgileIssue
    • AgileIssueFields
    • AllowedValue
    • Attachment
    • AttachmentContainer<T>
    • AvatarUrls
    • BaseId<TId>
    • BaseProperties<TId>
    • Board
    • BoardConfiguration
    • Column
    • ColumnConfig
    • Comment
    • Comments
    • Component
    • ComponentDigest
    • Configuration
    • Epic
    • EpicColor
    • Error
    • EstimationCustomFieldInfo
    • EstimationFieldInfo
    • Field
    • Filter
    • Issue
    • IssueBase
    • IssueFields
    • IssueType
    • IssueWithFields<TFields>
    • LoginInfo
    • Pageable
    • PageableResult
    • PossibleField
    • Priority
    • ProgressInfo
    • Project
    • ProjectCategory
    • ProjectDigest
    • RankingCustomFieldInfo
    • Resolution
    • Results<TResultType>
    • Schema
    • Search
    • SearchResult<TIssue>
    • ServerInfo
    • SharePermission
    • Sprint
    • Status
    • StatusCategory
    • Subscription
    • Subscriptions
    • TimeTracking
    • TimeTrackingConfiguration
    • Transition
    • Transitions
    • User
    • Version
    • Visibility
    • VoteInfo
    • Watches
    • Worklog
    • Worklogs
  • Dapplo.Jira.Enums
    • AdjustEstimate
    • AvatarSizes
    • BoardTypes
  • Dapplo.Jira.Json
    • CustomDateTimeOffsetConverter
  • Dapplo.Jira.Query
    • DatetimeClause
    • Fields
    • IDatetimeClause
    • IDatetimeClauseWithoutValue
    • IFinalClause
    • IIssueClause
    • IProjectClause
    • ISimpleValueClause
    • IssueClause
    • ITextClause
    • ITypeClause
    • IUserClause
    • IVersionClause
    • Operators
    • ProjectClause
    • SimpleValueClause
    • TextClause
    • TypeClause
    • UserClause
    • VersionClause
    • Where

Class TimeSpanExtensions

These methods help to convert jira working time to real time and back

Inheritance
System.Object
TimeSpanExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace:Dapplo.Jira
Assembly:Dapplo.Jira.dll
Syntax
public static class TimeSpanExtensions

Methods

| Improve this Doc View Source

FromWorkingTime(String, TimeTrackingConfiguration)

Declaration
public static TimeSpan FromWorkingTime(string workingTime, TimeTrackingConfiguration timeTrackingConfiguration = null)
Parameters
Type Name Description
System.String workingTime

string from Jira

TimeTrackingConfiguration timeTrackingConfiguration

TimeTrackingConfiguration

Returns
Type Description
System.TimeSpan
| Improve this Doc View Source

TimeSpanToIncrement(Nullable<TimeSpan>)

Create an increment from the timespan. increment has of (+/-)nn(y|M|w|d|h|m) If the plus/minus(+/-) sign is omitted, plus is assumed. nn: number; y: year, M: month; w: week; d: day; h: hour; m: minute.

Declaration
public static string TimeSpanToIncrement(this TimeSpan? timeSpan)
Parameters
Type Name Description
System.Nullable<System.TimeSpan> timeSpan

TimeSpan to convert

Returns
Type Description
System.String

string

| Improve this Doc View Source

ToWorkingTime(Nullable<TimeSpan>, TimeTrackingConfiguration)

Create an increment from the timespan. increment has of (+/-)nn(y|M|w|d|h|m) If the plus/minus(+/-) sign is omitted, plus is assumed. nn: number; y: year, M: month; w: week; d: day; h: hour; m: minute.

Declaration
public static string ToWorkingTime(this TimeSpan? timeSpan, TimeTrackingConfiguration timeTrackingConfiguration = null)
Parameters
Type Name Description
System.Nullable<System.TimeSpan> timeSpan

TimeSpan to convert

TimeTrackingConfiguration timeTrackingConfiguration

TimeTrackingConfiguration for calculating the values

Returns
Type Description
System.String

string

| Improve this Doc View Source

ToWorkingTime(TimeSpan, TimeTrackingConfiguration)

Create something that represents the jira working time format (+/-)nn(y|M|w|d|h|m) nn: number; y: year, M: month; w: week; d: day; h: hour; m: minute.

Declaration
public static string ToWorkingTime(this TimeSpan timeSpan, TimeTrackingConfiguration timeTrackingConfiguration = null)
Parameters
Type Name Description
System.TimeSpan timeSpan

TimeSpan to convert

TimeTrackingConfiguration timeTrackingConfiguration

TimeTrackingConfiguration for calculating the values

Returns
Type Description
System.String

string

  • Improve this Doc
  • View Source
Back to top Copyright © 2017 Dapplo