How can I embed tab characters in datetime string formats?
조회 수: 2 (최근 30일)
이전 댓글 표시
I have to create an output text file that will have lines of dates and times that are delimited by tab characters. I have no control over that format; it's a deliverable that has to be that way.
It looks like the .Format property of a datetime object cannot include escape characters, such as '\t'. Is there any easy way to get what I need, or must I assemble the output string piece-by-piece, using sprintf to insert the tab characters?
For reference, this is the format of a single line of the output, where the whitespace comes from tabs:
8 December 2015 14:10:50 8 December 2015 14:20:00
댓글 수: 0
추가 답변 (1개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Dates and Time에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!